2020-02-01 18:47:15 +03:00
|
|
|
@stack($name . '_input_start')
|
|
|
|
|
|
|
|
<akaunting-date
|
2022-06-01 10:15:55 +03:00
|
|
|
@class([
|
2022-06-29 12:49:23 +03:00
|
|
|
'relative',
|
2022-06-01 10:15:55 +03:00
|
|
|
$formGroupClass,
|
|
|
|
'required' => $required,
|
|
|
|
'readonly' => $readonly,
|
|
|
|
'disabled' => $disabled,
|
|
|
|
])
|
2020-02-01 18:47:15 +03:00
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (isset($attributes['v-show']))
|
|
|
|
v-if="{{ $attributes['v-show'] }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($required)
|
|
|
|
:required="{{ $required ? 'true' : 'false' }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($readonly)
|
|
|
|
:readonly="{{ $readonly }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if ($disabled)
|
|
|
|
:disabled="{{ $disabled }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (! empty($attributes['v-error']))
|
2020-02-01 18:47:15 +03:00
|
|
|
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
|
|
|
|
@else
|
|
|
|
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
|
|
|
|
@endif
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($icon))
|
|
|
|
icon="{{ $icon }}"
|
|
|
|
@endif
|
|
|
|
|
2022-06-03 09:12:58 +03:00
|
|
|
title="{!! $label !!}"
|
2022-06-01 10:15:55 +03:00
|
|
|
|
|
|
|
placeholder="{{ $placeholder }}"
|
|
|
|
|
2020-02-14 14:56:58 +03:00
|
|
|
name="{{ $name }}"
|
|
|
|
|
2020-02-24 16:07:22 +03:00
|
|
|
@if (isset($value) || old($name))
|
2020-02-14 14:56:58 +03:00
|
|
|
value="{{ old($name, $value) }}"
|
|
|
|
@endif
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($attributes['model']))
|
2020-02-14 14:56:58 +03:00
|
|
|
:model="{{ $attributes['model'] }}"
|
|
|
|
@endif
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($attributes['value']))
|
2021-07-09 08:29:09 +03:00
|
|
|
:value="{{ $attributes['value'] }}"
|
|
|
|
@endif
|
|
|
|
|
2021-03-18 16:08:24 +03:00
|
|
|
:date-config="{
|
2020-02-01 18:47:15 +03:00
|
|
|
allowInput: true,
|
|
|
|
wrap: true,
|
|
|
|
enableTime: true,
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($attributes['seconds']))
|
2020-02-01 18:47:15 +03:00
|
|
|
enableSeconds: true,
|
|
|
|
@endif
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($attributes['time_24hr']))
|
2021-07-09 08:29:09 +03:00
|
|
|
wrap: false,
|
|
|
|
time_24hr: true,
|
|
|
|
@else
|
|
|
|
wrap: true,
|
|
|
|
@endif
|
2020-02-01 18:47:15 +03:00
|
|
|
noCalendar: true
|
|
|
|
}"
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($attributes['v-model']))
|
2020-06-12 16:47:53 +03:00
|
|
|
@interface="form.errors.clear('{{ $attributes['v-model'] }}'); {{ $attributes['v-model'] . ' = $event' }}"
|
2022-06-01 10:15:55 +03:00
|
|
|
@elseif (! empty($attributes['data-field']))
|
2020-06-12 16:47:53 +03:00
|
|
|
@interface="form.errors.clear('{{ 'form.' . $attributes['data-field'] . '.' . $name }}'); {{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
2020-02-01 18:47:15 +03:00
|
|
|
@else
|
2020-06-12 16:47:53 +03:00
|
|
|
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
2020-02-01 18:47:15 +03:00
|
|
|
@endif
|
|
|
|
|
2022-06-01 10:15:55 +03:00
|
|
|
@if (! empty($attributes['change']))
|
2021-01-04 18:43:16 +03:00
|
|
|
@change="{{ $attributes['change'] }}"
|
|
|
|
@endif
|
|
|
|
|
2020-02-01 18:47:15 +03:00
|
|
|
@if(isset($attributes['v-error-message']))
|
|
|
|
:form-error="{{ $attributes['v-error-message'] }}"
|
|
|
|
@else
|
|
|
|
:form-error="form.errors.get('{{ $name }}')"
|
|
|
|
@endif
|
|
|
|
></akaunting-date>
|
|
|
|
|
|
|
|
@stack($name . '_input_end')
|