{{--
--}} @php $isPasteable = false; if(isset($pasteable) && $pasteable) { $isPasteable = true; } @endphp
@if(!empty($hint)) {{ $hint }} @endif @error($name) {{ $message }} @enderror @if ($isPasteable)
@endif
{{-- FIles preview area --}}
{{-- Hidden field to track removed existing files --}} @if(!empty($value))
@foreach($value as $index => $filePath) @php $ext = strtolower(pathinfo($filePath, PATHINFO_EXTENSION)); $isImage = in_array($ext, ['jpg','jpeg','png','gif','webp','svg']); @endphp
@if($isImage) Current {{ $label }} @else {{ strtoupper($ext) }} File @endif {{-- Remove button --}} {{ basename($filePath) }}
@endforeach
@endif {{--
--}}