2019-11-16 07:21:14 +00:00
|
|
|
@stack($name . '_input_start')
|
|
|
|
|
|
2020-02-01 10:32:43 +00:00
|
|
|
<akaunting-date
|
2022-06-01 07:15:55 +00:00
|
|
|
@class([
|
2022-06-29 09:49:23 +00:00
|
|
|
'relative',
|
2022-06-01 07:15:55 +00:00
|
|
|
$formGroupClass,
|
|
|
|
|
'required' => $required,
|
|
|
|
|
'readonly' => $readonly,
|
|
|
|
|
'disabled' => $disabled,
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
@if (isset($attributes['v-show']))
|
|
|
|
|
v-if="{{ $attributes['v-show'] }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if ($required)
|
|
|
|
|
:required="{{ $required ? 'true' : 'false' }}"
|
2022-06-16 13:00:38 +00:00
|
|
|
@else
|
|
|
|
|
:not-required={{ $required ? 'false' : 'true' }}
|
2022-06-01 07:15:55 +00:00
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if ($readonly)
|
|
|
|
|
:readonly="{{ $readonly }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if ($disabled)
|
|
|
|
|
:disabled="{{ $disabled }}"
|
|
|
|
|
@endif
|
2020-01-20 15:16:56 +00:00
|
|
|
|
2020-02-01 10:32:43 +00:00
|
|
|
@if (!empty($attributes['v-error']))
|
|
|
|
|
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
|
|
|
|
|
@else
|
|
|
|
|
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
|
2020-01-18 16:24:29 +00:00
|
|
|
@endif
|
2020-06-05 13:12:19 +00:00
|
|
|
|
2022-06-01 07:15:55 +00:00
|
|
|
@if (! empty($group_class))
|
|
|
|
|
group_class="{{ $group_class }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if (! empty($icon))
|
|
|
|
|
icon="{{ $icon }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
2022-06-03 06:12:58 +00:00
|
|
|
title="{!! $label !!}"
|
2022-06-01 07:15:55 +00:00
|
|
|
|
|
|
|
|
placeholder="{{ $placeholder }}"
|
|
|
|
|
|
2020-02-14 11:56:58 +00:00
|
|
|
name="{{ $name }}"
|
|
|
|
|
|
2020-02-24 13:07:22 +00:00
|
|
|
@if (isset($value) || old($name))
|
2020-02-14 11:56:58 +00:00
|
|
|
value="{{ old($name, $value) }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
@if (!empty($attributes['model']))
|
|
|
|
|
:model="{{ $attributes['model'] }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
2021-02-27 13:54:39 +00:00
|
|
|
:date-config="{
|
|
|
|
|
wrap: true, // set wrap to true only when using 'input-group'
|
2021-06-02 09:26:45 +00:00
|
|
|
allowInput: false,
|
2020-02-01 10:32:43 +00:00
|
|
|
@if (!empty($attributes['show-date-format']))
|
|
|
|
|
altInput: true,
|
|
|
|
|
altFormat: '{{ $attributes['show-date-format'] }}',
|
|
|
|
|
@endif
|
|
|
|
|
@if (!empty($attributes['date-format']))
|
2021-02-27 13:54:39 +00:00
|
|
|
dateFormat: '{{ $attributes['date-format'] }}',
|
2020-02-01 10:32:43 +00:00
|
|
|
@endif
|
2020-02-09 10:11:39 +00:00
|
|
|
@if (!empty($attributes['min-date']))
|
2021-02-27 13:54:39 +00:00
|
|
|
minDate: {{ $attributes['min-date'] }},
|
2020-02-09 10:11:39 +00:00
|
|
|
@endif
|
|
|
|
|
@if (!empty($attributes['max-date']))
|
2021-02-27 13:54:39 +00:00
|
|
|
maxDate: {{ $attributes['max-date'] }},
|
2020-02-09 10:11:39 +00:00
|
|
|
@endif
|
2020-02-01 10:32:43 +00:00
|
|
|
}"
|
2021-02-23 19:28:18 +00:00
|
|
|
|
2021-02-13 18:40:23 +00:00
|
|
|
locale="{{ language()->getShortCode() }}"
|
2020-01-20 15:16:56 +00:00
|
|
|
|
2021-07-15 10:09:45 +00:00
|
|
|
@if (isset($attributes['period']))
|
2021-07-15 05:54:02 +00:00
|
|
|
period="{{ $attributes['period'] }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
2020-02-01 10:32:43 +00:00
|
|
|
@if (!empty($attributes['v-model']))
|
2020-06-12 13:47:53 +00:00
|
|
|
@interface="form.errors.clear('{{ $attributes['v-model'] }}'); {{ $attributes['v-model'] . ' = $event' }}"
|
2020-02-01 10:32:43 +00:00
|
|
|
@elseif (!empty($attributes['data-field']))
|
2020-06-12 13:47:53 +00:00
|
|
|
@interface="form.errors.clear('{{ 'form.' . $attributes['data-field'] . '.' . $name }}'); {{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
2020-02-01 10:32:43 +00:00
|
|
|
@else
|
2020-06-12 13:47:53 +00:00
|
|
|
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
2020-02-01 10:32:43 +00:00
|
|
|
@endif
|
|
|
|
|
|
2021-06-07 11:42:36 +00:00
|
|
|
@if (!empty($attributes['hidden_year']))
|
|
|
|
|
hidden-year
|
|
|
|
|
@endif
|
|
|
|
|
|
2021-06-18 08:35:36 +00:00
|
|
|
@if (!empty($attributes['min-date-dynamic']))
|
|
|
|
|
:data-value-min="{{ $attributes['min-date-dynamic'] }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
2021-01-04 15:43:16 +00:00
|
|
|
@if (!empty($attributes['change']))
|
|
|
|
|
@change="{{ $attributes['change'] }}"
|
|
|
|
|
@endif
|
|
|
|
|
|
2020-02-19 08:10:27 +00:00
|
|
|
@if (isset($attributes['v-error-message']))
|
2020-02-01 10:32:43 +00:00
|
|
|
:form-error="{{ $attributes['v-error-message'] }}"
|
|
|
|
|
@else
|
|
|
|
|
:form-error="form.errors.get('{{ $name }}')"
|
|
|
|
|
@endif
|
2020-01-20 15:16:56 +00:00
|
|
|
></akaunting-date>
|
2019-11-16 07:21:14 +00:00
|
|
|
|
|
|
|
|
@stack($name . '_input_end')
|