@props([ 'wireModel' => '', 'accept' => '*', 'label' => 'Upload File', 'helpText' => 'Select a file to upload', 'currentFile' => null, 'maxSize' => 2, 'previewType' => 'image', // 'image' or 'file' ]) @php $cacheBuster = $currentFile ? (@filemtime(storage_path('app/public/' . $currentFile)) ?: time()) : null; @endphp
@if($currentFile && $previewType === 'image')
Preview
@endif

{{ __('common.click_to_upload') }} {{ __('common.or_drag_and_drop') }}

{{ $helpText }}

{{ __('common.uploading') }}

@error($wireModel)

{{ $message }}

@enderror