@php $props = []; $id = $id ?? Str::random(5); array_push($props, 'id="' . $id . '"'); array_push($props, 'name="' . ($name ?? $id) . '"'); array_push($props, isset($placeholder) ? 'placeholder="' . $placeholder . '"' : ''); array_push($props, isset($accept) ? 'accept="' . $accept . '"' : ''); array_push($props, isset($min) ? 'min="' . $min . '"' : ''); array_push($props, isset($max) ? 'max="' . $max . '"' : ''); array_push($props, isset($disabled) ? 'disabled' : ''); array_push($props, isset($readonly) ? 'readonly' : ''); array_push($props, $required ?? false ? 'required' : ''); array_push($props, isset($type) ? 'type="' . $type . '"' : 'type="text"'); $hasError = $errors->has($name ?? $id); @endphp @if (config('app.template') === 'stisla')
@if ($hint ?? false)
{{ $hint }}
@endif @error($name ?? $id)
{{ $message }}
@enderror
@else
@if ($hasError) {{ $errors->first($name ?? $id) }} @endif @if ($hint ?? false) {{ $hint }} @endif
@endif