akaunting/resources/views/partials/form/file_group.blade.php

35 lines
1.6 KiB
PHP
Raw Normal View History

2018-08-04 19:07:32 +03:00
@stack($name . '_input_start')
2020-02-01 13:32:43 +03:00
2019-11-16 10:21:14 +03:00
<div
class="form-group {{ $col }}{{ isset($attributes['required']) ? ' required' : '' }}{{ isset($attributes['readonly']) ? ' readonly' : '' }}{{ isset($attributes['disabled']) ? ' disabled' : '' }}"
2019-11-16 10:21:14 +03:00
:class="[{'has-error': errors.{{ $name }}}]">
@if (!empty($text))
{!! Form::label($name, $text, ['class' => 'form-control-label'])!!}
@endif
2018-08-04 19:07:32 +03:00
2020-12-30 11:11:39 +03:00
<div class="input-group input-group-merge">
2020-12-30 23:17:49 +03:00
<dropzone-file-upload
@if (!empty($attributes['dropzone-class']))
class="{{ $attributes['dropzone-class'] }}"
@endif
2020-12-07 13:10:41 +03:00
@if (!empty($attributes['options']))
2021-01-17 12:44:23 +03:00
:options={{ json_encode($attributes['options']) }}
2020-12-07 13:10:41 +03:00
@endif
@if (!empty($attributes['multiple']))
multiple
@endif
2021-01-17 17:58:34 +03:00
@if (!empty($attributes['isPreviewSingle']))
:is-preview-single="{{ $attributes['isPreviewSingle'] }}"
@endif
2020-12-07 13:10:41 +03:00
v-model="{{ !empty($attributes['v-model']) ? $attributes['v-model'] : (!empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name : 'form.' . $name) }}"
></dropzone-file-upload>
2019-11-16 10:21:14 +03:00
</div>
2018-08-04 19:07:32 +03:00
2019-11-16 10:21:14 +03:00
<div class="invalid-feedback d-block"
v-if="{{ isset($attributes['v-error']) ? $attributes['v-error'] : 'form.errors.has("' . $name . '")' }}"
v-html="{{ isset($attributes['v-error-message']) ? $attributes['v-error-message'] : 'form.errors.get("' . $name . '")' }}">
</div>
</div>
2020-02-01 13:32:43 +03:00
2018-08-04 19:07:32 +03:00
@stack($name . '_input_end')