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-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']))
|
|
|
|
:readonly="'{{ $attributes['readonly'] }}'"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (isset($attributes['disabled']))
|
|
|
|
:disabled="'{{ $attributes['disabled'] }}'"
|
2020-02-01 18:47:15 +03:00
|
|
|
@endif
|
2019-11-16 10:21:14 +03:00
|
|
|
|
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 . '")' }}"
|
|
|
|
:name="'{{ $name }}'"
|
|
|
|
:title="'{{ $text }}'"
|
|
|
|
:group_class="'{{ $group_class }}'"
|
|
|
|
:icon="'{{ $icon }}'"
|
|
|
|
: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'] }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (!empty($attributes['v-model']))
|
|
|
|
v-model="{{ $attributes['v-model'] }}"
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@if (!empty($attributes['change']))
|
|
|
|
@change="{{ $attributes['change'] }}($event)"
|
|
|
|
@endif
|
|
|
|
|
2020-02-09 19:03:26 +03:00
|
|
|
@if (!empty($attributes['v-model']))
|
|
|
|
@interface="{{ $attributes['v-model'] . ' = $event' }}"
|
|
|
|
@elseif (!empty($attributes['data-field']))
|
|
|
|
@interface="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
|
|
|
@else
|
|
|
|
@interface="form.{{ $name }} = $event"
|
|
|
|
@endif
|
|
|
|
></akaunting-money>
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
@stack($name . '_input_end')
|