akaunting 3.0 (the last dance)
This commit is contained in:
25
resources/views/components/form/input/checkbox.blade.php
Normal file
25
resources/views/components/form/input/checkbox.blade.php
Normal file
@ -0,0 +1,25 @@
|
||||
<input type="checkbox"
|
||||
name="{{ $name }}"
|
||||
class="rounded-sm text-purple border-gray-300 cursor-pointer disabled:bg-gray-200 focus:outline-none focus:ring-transparent"
|
||||
id="{{ ! empty($attributes[':id']) ? $attributes[':id'] : $id }}"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
@if (! empty($checked) && (string) $checked != 'n/a')
|
||||
checked="checked"
|
||||
@endif
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message', 'option', 'optionKey', 'optionValue']) }}
|
||||
/>
|
||||
|
||||
<label class="form-control-label ml-2" for="{{ ! empty($attributes[':id']) ? $attributes[':id'] : $id }}">
|
||||
{{ !empty($option) ? $option->$optionValue : $label }}
|
||||
</label>
|
77
resources/views/components/form/input/color.blade.php
Normal file
77
resources/views/components/form/input/color.blade.php
Normal file
@ -0,0 +1,77 @@
|
||||
@stack($name . '_input_start')
|
||||
<akaunting-color
|
||||
@class([
|
||||
'form-group relative',
|
||||
$formGroupClass,
|
||||
'required' => $required,
|
||||
'readonly' => $readonly,
|
||||
'disabled' => $disabled,
|
||||
])
|
||||
|
||||
id="form-select-{{ $name }}"
|
||||
|
||||
@if (isset($attributes['v-show']))
|
||||
v-if="{{ $attributes['v-show'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['v-error']))
|
||||
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
|
||||
@else
|
||||
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
|
||||
@endif
|
||||
|
||||
@if (! $attributes->has('icon') && ! empty($icon->contents))
|
||||
{!! $icon ?? '' !!}
|
||||
@elseif (! empty($icon))
|
||||
<x-form.icon icon="{{ $icon }}" />
|
||||
@endif
|
||||
|
||||
title="{{ $label }}"
|
||||
|
||||
@if (isset($attributes['placeholder']))
|
||||
placeholder="{{ $attributes['placeholder'] }}"
|
||||
@else
|
||||
placeholder="{{ trans('general.form.select.field', ['field' => $label]) }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($name))
|
||||
name="{{ $name }}"
|
||||
@endif
|
||||
|
||||
value="{{ $value }}"
|
||||
|
||||
@if (! empty($attributes['model']))
|
||||
:model="{{ $attributes['model'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['small']))
|
||||
small="{{ $attributes['small'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['v-model']))
|
||||
@interface="form.errors.clear('{{ $attributes['v-model'] }}'); {{ $attributes['v-model'] . ' = $event' }}"
|
||||
@elseif (! empty($attributes['data-field']))
|
||||
@interface="form.errors.clear('{{ 'form.' . $attributes['data-field'] . '.' . $name }}'); {{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
||||
@else
|
||||
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event;"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['change']))
|
||||
@change="{{ $attributes['change'] }}($event)"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['readonly']))
|
||||
:readonly="{{ $attributes['readonly'] }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['disabled']))
|
||||
:disabled="{{ $attributes['disabled'] }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['v-error-message']))
|
||||
:form-error="{{ $attributes['v-error-message'] }}"
|
||||
@else
|
||||
:form-error="form.errors.get('{{ $name }}')"
|
||||
@endif
|
||||
></akaunting-color>
|
||||
@stack($name . '_input_end')
|
25
resources/views/components/form/input/editor.blade.php
Normal file
25
resources/views/components/form/input/editor.blade.php
Normal file
@ -0,0 +1,25 @@
|
||||
<akaunting-html-editor
|
||||
name="{{ $name }}"
|
||||
|
||||
@if (! empty($value))
|
||||
:value="`{!! $value !!}`"
|
||||
@else
|
||||
:value="''"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['model']))
|
||||
:model="{{ $attributes['model'] }}"
|
||||
@endif
|
||||
|
||||
@if (!empty($attributes['v-model']))
|
||||
@input="{{ $attributes['v-model'] . ' = $event' }}"
|
||||
@elseif (!empty($attributes['data-field']))
|
||||
@input="{{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
||||
@else
|
||||
@input="form.{{ $name }} = $event"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['disabled']))
|
||||
:disabled="{{ $attributes['disabled'] }}"
|
||||
@endif
|
||||
></akaunting-html-editor>
|
18
resources/views/components/form/input/email.blade.php
Normal file
18
resources/views/components/form/input/email.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
<input type="email"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message']) }}
|
||||
/>
|
83
resources/views/components/form/input/file.blade.php
Normal file
83
resources/views/components/form/input/file.blade.php
Normal file
@ -0,0 +1,83 @@
|
||||
<akaunting-dropzone-file-upload
|
||||
text-drop-file="{{ trans('general.form.drop_file') }}"
|
||||
text-choose-file="{{ trans('general.form.choose_file') }}"
|
||||
|
||||
@if (! empty($attributes['dropzone-class']))
|
||||
class="{{ $attributes['dropzone-class'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($options))
|
||||
:options={{ json_encode($options) }}
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['preview']))
|
||||
:preview={{ json_encode($attributes['preview']) }}
|
||||
@endif
|
||||
|
||||
@if (! empty($multiple))
|
||||
multiple
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['previewClasses']))
|
||||
preview-classes="{{ $attributes['previewClasses'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['singleWidthClasses']))
|
||||
single-width-classes="{{ $attributes['singleWidthClasses'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['url']))
|
||||
url="{{ $attributes['url'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($value))
|
||||
@php
|
||||
$attachments = [];
|
||||
@endphp
|
||||
|
||||
@if (is_array($value))
|
||||
@foreach($value as $attachment)
|
||||
@php
|
||||
$attachments[] = [
|
||||
'id' => $attachment->id,
|
||||
'name' => $attachment->filename . '.' . $attachment->extension,
|
||||
'path' => route('uploads.get', $attachment->id),
|
||||
'type' => $attachment->mime_type,
|
||||
'size' => $attachment->size,
|
||||
'downloadPath' => route('uploads.download', $attachment->id),
|
||||
];
|
||||
@endphp
|
||||
@endforeach
|
||||
@elseif ($value instanceof \Plank\Mediable\Media)
|
||||
@php
|
||||
$attachments[] = [
|
||||
'id' => $value->id,
|
||||
'name' => $value->filename . '.' . $value->extension,
|
||||
'path' => route('uploads.get', $value->id),
|
||||
'type' => $value->mime_type,
|
||||
'size' => $value->size,
|
||||
'downloadPath' => false,
|
||||
];
|
||||
@endphp
|
||||
@else
|
||||
@php
|
||||
$attachment = \Plank\Mediable\Media::find($value);
|
||||
|
||||
if (! empty($attachment)) {
|
||||
$attachments[] = [
|
||||
'id' => $attachment->id,
|
||||
'name' => $attachment->filename . '.' . $attachment->extension,
|
||||
'path' => route('uploads.get', $attachment->id),
|
||||
'type' => $attachment->mime_type,
|
||||
'size' => $attachment->size,
|
||||
'downloadPath' => false,
|
||||
];
|
||||
}
|
||||
@endphp
|
||||
@endif
|
||||
|
||||
:attachments="{{ json_encode($attachments) }}"
|
||||
@endif
|
||||
|
||||
v-model="{{ ! empty($attributes['v-model']) ? $attributes['v-model'] : (! empty($attributes['data-field']) ? 'form.' . $attributes['data-field'] . '.'. $name : 'form.' . $name) }}"
|
||||
></akaunting-dropzone-file-upload>
|
16
resources/views/components/form/input/hidden.blade.php
Normal file
16
resources/views/components/form/input/hidden.blade.php
Normal file
@ -0,0 +1,16 @@
|
||||
<input type="hidden"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
value="{{ $value }}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message']) }}
|
||||
/>
|
18
resources/views/components/form/input/input.blade.php
Normal file
18
resources/views/components/form/input/input.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
<input type="{{ $type }}"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message']) }}
|
||||
/>
|
82
resources/views/components/form/input/money.blade.php
Normal file
82
resources/views/components/form/input/money.blade.php
Normal file
@ -0,0 +1,82 @@
|
||||
@stack($name . '_input_start')
|
||||
<akaunting-money
|
||||
@if (! empty($attributes['v-error']))
|
||||
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
|
||||
@else
|
||||
:form-classes="[{'has-error': form.errors.has('{{ $name }}') }]"
|
||||
@endif
|
||||
|
||||
col="{{ $formGroupClass }}"
|
||||
|
||||
@if (! empty($attributes['money-class']))
|
||||
money-class="{{ $attributes['money-class'] }}"
|
||||
@endif
|
||||
|
||||
@if ($required)
|
||||
:required="{{ ($required) ? 'true' : 'false' }}"
|
||||
@endif
|
||||
|
||||
@if ($readonly)
|
||||
:readonly="{{ $readonly }}"
|
||||
@endif
|
||||
|
||||
@if ($disabled)
|
||||
:disabled="{{ $disabled }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['v-show']))
|
||||
v-if="{{ $attributes['v-show'] }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['masked']))
|
||||
:masked="{{ ($attributes['masked']) ? 'true' : 'false' }}"
|
||||
@endif
|
||||
|
||||
name="{{ $name }}"
|
||||
title="{{ $label }}"
|
||||
:group_class="'{{ $formGroupClass }}'"
|
||||
|
||||
@if (! empty($icon))
|
||||
icon="{{ $icon }}"
|
||||
@endif
|
||||
|
||||
:currency="{{ json_encode($attributes['currency']) }}"
|
||||
:value="{{ $value }}"
|
||||
|
||||
@if (! empty($attributes['dynamic-currency']))
|
||||
:dynamic-currency="{{ $attributes['dynamic-currency'] }}"
|
||||
@else
|
||||
:dynamic-currency="currency"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['v-model']))
|
||||
v-model="{{ $attributes['v-model'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['change']))
|
||||
@change="{{ $attributes['change'] }}($event)"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['input']))
|
||||
@input="{{ $attributes['input'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['v-model']))
|
||||
@interface="form.errors.clear('{{ $attributes['v-model'] }}'); {{ $attributes['v-model'] . ' = $event' }}"
|
||||
@elseif (!empty($attributes['data-field']))
|
||||
@interface="form.errors.clear('{{ 'form.' . $attributes['data-field'] . '.' . $name }}'); {{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
||||
@else
|
||||
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['v-error-message']))
|
||||
:error="{{ $attributes['v-error-message'] }}"
|
||||
@else
|
||||
:error="form.errors.get('{{ $name }}')"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['row-input']))
|
||||
:row-input="{{ $attributes['row-input'] }}"
|
||||
@endif
|
||||
></akaunting-money>
|
||||
@stack($name . '_input_end')
|
18
resources/views/components/form/input/number.blade.php
Normal file
18
resources/views/components/form/input/number.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
<input type="number"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message']) }}
|
||||
/>
|
18
resources/views/components/form/input/password.blade.php
Normal file
18
resources/views/components/form/input/password.blade.php
Normal file
@ -0,0 +1,18 @@
|
||||
<input type="password"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message']) }}
|
||||
/>
|
28
resources/views/components/form/input/radio.blade.php
Normal file
28
resources/views/components/form/input/radio.blade.php
Normal file
@ -0,0 +1,28 @@
|
||||
<label
|
||||
@click="form.{{ $name }} = '{{ $option->$optionKey }}'"
|
||||
class="border rounded-md px-2 py-2.5 flex items-center justify-center text-center text-sm font-medium sm:flex-1 cursor-pointer focus:outline-none transition-all"
|
||||
:class="[form.{{ $name }} == '{{ $option->$optionKey }}' ? 'bg-purple border-transparent text-white hover:bg-purple-700' : 'bg-white border-gray-200 text-gray-900 hover:bg-gray-50']"
|
||||
>
|
||||
<input type="radio"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id . '-' . $option->$optionKey }}"
|
||||
aria-labelledby="radio-{{ $option->$optionKey }}"
|
||||
@if ($value)
|
||||
value="{{ $value }}"
|
||||
@endif
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message', 'option', 'optionKey', 'optionValue']) }}
|
||||
/>
|
||||
|
||||
<p id="radio-{{ $option->$optionKey }}">
|
||||
{{ $option->$optionValue }}
|
||||
</p>
|
||||
</label>
|
158
resources/views/components/form/input/select.blade.php
Normal file
158
resources/views/components/form/input/select.blade.php
Normal file
@ -0,0 +1,158 @@
|
||||
@if (! empty($remote))
|
||||
<akaunting-select-remote
|
||||
@else
|
||||
<akaunting-select
|
||||
@endif
|
||||
@class([
|
||||
'form-group relative',
|
||||
$formGroupClass,
|
||||
'required' => $required,
|
||||
'readonly' => $readonly,
|
||||
'disabled' => $disabled,
|
||||
])
|
||||
|
||||
id="form-select-{{ $name }}"
|
||||
|
||||
@if (isset($attributes['v-show']))
|
||||
v-if="{{ $attributes['v-show'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['v-error']))
|
||||
:form-classes="[{'has-error': {{ $attributes['v-error'] }} }]"
|
||||
@else
|
||||
:form-classes="[{'has-error': form.errors.get('{{ $name }}') }]"
|
||||
@endif
|
||||
|
||||
@if (! $attributes->has('icon') && ! empty($icon->contents))
|
||||
{!! $icon ?? '' !!}
|
||||
@elseif (! empty($icon))
|
||||
<x-form.icon icon="{{ $icon }}" />
|
||||
@endif
|
||||
|
||||
@if (! empty($label))
|
||||
title="{{ $label }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['placeholder']))
|
||||
placeholder="{{ $attributes['placeholder'] }}"
|
||||
@else
|
||||
placeholder="{{ trans('general.form.select.field', ['field' => $label]) }}"
|
||||
@endif
|
||||
|
||||
name="{{ $name }}"
|
||||
|
||||
:options="{{ json_encode($options) }}"
|
||||
|
||||
@if (isset($attributes['disabledOptions']))
|
||||
:disabled-options="{{ json_encode($attributes['disabledOptions']) }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['dynamicOptions']))
|
||||
:dynamic-options="{{ $attributes['dynamicOptions'] }}"
|
||||
@endif
|
||||
|
||||
@if (empty($multiple))
|
||||
@if (isset($selected) || old($name))
|
||||
value="{{ old($name, $selected) }}"
|
||||
@endif
|
||||
@else
|
||||
@if (isset($selected) || old($name))
|
||||
:value="{{ json_encode(old($name, $selected)) }}"
|
||||
@endif
|
||||
|
||||
multiple
|
||||
|
||||
@if (! empty($attributes['collapse']))
|
||||
collapse
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['model']))
|
||||
:model="{{ $attributes['model'] }}"
|
||||
@endif
|
||||
|
||||
@if (! empty($addNew))
|
||||
:add-new="{{ json_encode([
|
||||
'status' => true,
|
||||
'text' => trans('general.add_new'),
|
||||
'path' => isset($attributes['path']) ? $attributes['path']: false,
|
||||
'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
|
||||
'field' => [
|
||||
'key' => isset($attributes['field']['key']) ? $attributes['field']['key'] : 'id',
|
||||
'value' => isset($attributes['field']['value']) ? $attributes['field']['value'] : 'name'
|
||||
],
|
||||
'new_text' => trans('modules.new'),
|
||||
'buttons' => [
|
||||
'cancel' => [
|
||||
'text' => trans('general.cancel'),
|
||||
'class' => 'btn-outline-secondary'
|
||||
],
|
||||
'confirm' => [
|
||||
'text' => trans('general.save'),
|
||||
'class' => 'disabled:bg-green-100'
|
||||
]
|
||||
]
|
||||
])}}"
|
||||
@endif
|
||||
|
||||
@if (! empty($group))
|
||||
group
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['v-model']))
|
||||
@interface="form.errors.clear('{{ $attributes['v-model'] }}'); {{ $attributes['v-model'] . ' = $event' }}"
|
||||
@elseif (! empty($attributes['data-field']))
|
||||
@interface="form.errors.clear('{{ 'form.' . $attributes['data-field'] . '.' . $name }}'); {{ 'form.' . $attributes['data-field'] . '.' . $name . ' = $event' }}"
|
||||
@else
|
||||
@interface="form.errors.clear('{{ $name }}'); form.{{ $name }} = $event;"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['change']))
|
||||
@change="{{ $attributes['change'] }}($event)"
|
||||
@endif
|
||||
|
||||
@if (! empty($attributes['visible-change']))
|
||||
@visible-change="{{ $attributes['visible-change'] }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['readonly']))
|
||||
:readonly="{{ $attributes['readonly'] }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['clearable']))
|
||||
:clearable="{{ $attributes['clearable'] }}"
|
||||
@else
|
||||
clearable
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['v-disabled']))
|
||||
:disabled="{{ $attributes['v-disabled'] }}"
|
||||
@endif
|
||||
|
||||
@if (isset($attributes['v-error-message']))
|
||||
:form-error="{{ $attributes['v-error-message'] }}"
|
||||
@else
|
||||
:form-error="form.errors.get('{{ $name }}')"
|
||||
@endif
|
||||
|
||||
@if (! empty($remote))
|
||||
remote-action="{{ $attributes['remote_action'] }}"
|
||||
|
||||
@if (! empty($attributes['currecny_code']))
|
||||
currency-code="{{ $attributes['currecny_code'] }}"
|
||||
@endif
|
||||
@endif
|
||||
|
||||
loading-text="{{ trans('general.loading') }}"
|
||||
no-data-text="{{ trans('general.no_data') }}"
|
||||
no-matching-data-text="{{ trans('general.no_matching_data') }}"
|
||||
|
||||
@if (isset($attributes['sort-options']))
|
||||
:sort-options="{{ $attributes['sort-options'] }}"
|
||||
@endif
|
||||
>
|
||||
@if (! empty($remote))
|
||||
</akaunting-select-remote>
|
||||
@else
|
||||
</akaunting-select>
|
||||
@endif
|
16
resources/views/components/form/input/text.blade.php
Normal file
16
resources/views/components/form/input/text.blade.php
Normal file
@ -0,0 +1,16 @@
|
||||
<input type="text"
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
value="{{ $value }}"
|
||||
placeholder="{!! $placeholder !!}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['placeholder', 'disabled', 'required', 'readonly', 'v-error', 'v-error-message']) }}
|
||||
/>
|
16
resources/views/components/form/input/textarea.blade.php
Normal file
16
resources/views/components/form/input/textarea.blade.php
Normal file
@ -0,0 +1,16 @@
|
||||
<textarea
|
||||
name="{{ $name }}"
|
||||
id="{{ $id }}"
|
||||
rows="{{ $rows }}"
|
||||
placeholder="{{ $placeholder }}"
|
||||
@if ($disabled)
|
||||
disabled="disabled"
|
||||
@endif
|
||||
@if ($required)
|
||||
required="required"
|
||||
@endif
|
||||
@if ($readonly)
|
||||
readonly="readonly"
|
||||
@endif
|
||||
{{ $attributes->except(['rows', 'placeholder', 'disabled', 'required', 'readonly']) }}
|
||||
>{!! $value !!}</textarea>
|
Reference in New Issue
Block a user