@props(['label', 'name', 'value' => '', 'error' => null, 'btnText' => null, 'image' => '', 'defaultImage' => '', 'withDelete' => false, 'deleteAction' => false, 'withPosition' => false]) @php $label = $label ?? false; $placeholder = $attributes['placeholder'] ?? ''; $error = json_decode($error, true) ?? []; @endphp
@if (!empty($error[0]))
@endif @if ($label) {{ $label }} @endif
@if ($withPosition) @svg('images/icons/admin/move.svg', 'fill-current text-gray-400 w-4 h-4 mr-2 cursor-pointer') @endif
@if (empty($image)) @else @endif
@if ($withDelete) @endif @if (!$withDelete) @endif
merge(['class' => 'w-full appearance-none border-0 bg-transparent text-black py-1 px-0 focus:outline-none focus:border-transparent']) }}> @if (!empty($error[0]))
{{ $error[0] }}
@endif