2019-11-16 10:21:14 +03:00
|
|
|
@stack($name . '_input_start')
|
|
|
|
|
2020-02-09 19:03:26 +03:00
|
|
|
<akaunting-money :col="'{{ $col }}'"
|
2020-02-29 11:40:33 +03:00
|
|
|
@if (!empty($attributes['v-error']))
|
|
|
|
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
|
|
|
|
@else
|
|
|
|
:form-classes="[{'has-error': form.errors.has('{{ $name }}') }]"
|
|
|
|
@endif
|
|
|
|
|
2020-12-29 21:55:21 +03:00
|
|
|
@if (!empty($attributes['money-class']))
|
|
|
|
money-class="{{ $attributes['money-class'] }}"
|
|
|
|
@endif
|
|
|
|
|
2020-02-11 18:04:53 +03:00
|
|
|
@if (isset($attributes['required']))
|
|
|
|
:required="{{ ($attributes['required']) ? 'true' : 'false' }}"
|
2020-02-10 00:24:18 +03:00
|
|
|
@endif
|
2020-02-09 19:03:26 +03:00
|
|
|
|
|
|
|
@if (isset($attributes['readonly']))
|
2020-03-19 22:39:52 +03:00
|
|
|
:readonly="{{ $attributes['readonly'] }}"
|
2020-02-09 19:03:26 +03:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (isset($attributes['disabled']))
|
2020-03-06 12:28:21 +03:00
|
|
|
:disabled="{{ $attributes['disabled'] }}"
|
2020-02-01 18:47:15 +03:00
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-03-19 22:57:28 +03:00
|
|
|
@if (isset($attributes['show']))
|
|
|
|
v-if="{{ $attributes['show'] }}"
|
|
|
|
@endif
|
|
|
|
|
2020-02-09 19:03:26 +03:00
|
|
|
@if (isset($attributes['masked']))
|
2020-02-10 00:24:18 +03:00
|
|
|
:masked="{{ ($attributes['masked']) ? 'true' : 'false' }}"
|
2020-02-09 19:03:26 +03:00
|
|
|
@endif
|
|
|
|
|
|
|
|
:error="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.get("' . $name . '")' }}"
|
2020-02-14 14:56:58 +03:00
|
|
|
name="{{ $name }}"
|
|
|
|
title="{{ $text }}"
|
2020-02-09 19:03:26 +03:00
|
|
|
:group_class="'{{ $group_class }}'"
|
2020-02-14 14:56:58 +03:00
|
|
|
icon="{{ $icon }}"
|
2020-02-09 19:03:26 +03:00
|
|
|
:currency="{{ json_encode($attributes['currency']) }}"
|
|
|
|
:value="{{ $value }}"
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-02-10 00:24:18 +03:00
|
|
|
@if (!empty($attributes['dynamic-currency']))
|
|
|
|
:dynamic-currency="{{ $attributes['dynamic-currency'] }}"
|
2020-02-29 11:40:33 +03:00
|
|
|
@else
|
|
|
|
:dynamic-currency="currency"
|
2020-02-10 00:24:18 +03:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (!empty($attributes['v-model']))
|
|
|
|
v-model="{{ $attributes['v-model'] }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (!empty($attributes['change']))
|
|
|
|
@change="{{ $attributes['change'] }}($event)"
|
|
|
|
@endif
|
|
|
|
|
2020-06-08 19:08:13 +03:00
|
|
|
@if (!empty($attributes['input']))
|
|
|
|
@input="{{ $attributes['input'] }}"
|
|
|
|
@endif
|
|
|
|
|
2020-02-09 19:03:26 +03:00
|
|
|
@if (!empty($attributes['v-model']))
|
2020-06-05 16:14:00 +03:00
|
|
|
@interface="form.errors.clear('{{ $attributes['v-model'] }}'); {{ $attributes['v-model'] . ' = $event' }}"
|
2020-02-09 19:03:26 +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-09 19:03:26 +03:00
|
|
|
@else
|
2020-06-05 16:14:00 +03:00
|
|
|
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
2020-02-09 19:03:26 +03:00
|
|
|
@endif
|
2020-02-29 11:40:33 +03:00
|
|
|
|
|
|
|
@if (isset($attributes['v-error-message']))
|
|
|
|
:form-error="{{ $attributes['v-error-message'] }}"
|
|
|
|
@else
|
|
|
|
:form-error="form.errors.get('{{ $name }}')"
|
|
|
|
@endif
|
2020-12-24 01:28:38 +03:00
|
|
|
|
|
|
|
@if (isset($attributes['row-input']))
|
|
|
|
:row-input="{{ $attributes['row-input'] }}"
|
|
|
|
@endif
|
2021-08-25 19:51:38 +03:00
|
|
|
|
2020-02-09 19:03:26 +03:00
|
|
|
></akaunting-money>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
@stack($name . '_input_end')
|