File Uploads
@if ($errors->any())
@foreach ($errors->all() as $error)

{{ $error }}

@endforeach
@endif
@if($isMode('all'))
@if($collection == \App\Models\File::COLLECTION_IMAGE) @endif @can(\App\Models\Permission::PERM_FILE_SETTING_CREATE) Create {{ \Illuminate\Support\Str::ucfirst(str_replace('_', ' ', $collection)) }} File @endcan
@if($getFiles()->count())
@if($linkable()) @else @if($isImage()) @endif @if($collection == \App\Models\File::COLLECTION_IMAGE) @endif @endif @foreach($getFiles() as $key => $f) @if($linkable()) @else @if($isImage()) @endif @if($collection == \App\Models\File::COLLECTION_IMAGE) @endif @endif @endforeach
Link Name URL ValidthumbnailFile Name Size Mime TypeImage TypeLast Modified Actions
{{ $f->original_name }} {{ $f->source }} {{ intval($f->invalid) }} {{ $f->original_name }} {{ filesize_formatted($f->size) }} {{ $f->mime_type }}{{ $f->custom_properties['image_type'] ?? 'general' }}{{ $f->updated_at->diffForHumans() }}
@else
No {{ str_replace('_', ' ', $collection) }} file is found.
@endif @elseif ($isMode('edit', 'create'))
@if($isMode('edit')) @can(\App\Models\Permission::PERM_FILE_SETTING_UPDATE) @endcan Download @can(\App\Models\Permission::PERM_FILE_SETTING_DELETE) @endcan @else @can(\App\Models\Permission::PERM_FILE_SETTING_CREATE) @endcan @endif {{ __('Back to List') }}
@csrf @if($file) @method('PUT') @endif
@if($collection == \App\Models\File::COLLECTION_IMAGE)
@error('custom_properties') {{ $message }} @enderror
@endif
@error('original_name') {{ $message }} @enderror
@error('source') {{ $message }} @enderror
@if(!$linkable())
@error($getUploadNameAttr()) {{ $message }} @enderror
@endif @if($file && !$linkable())
{!! $embedCode() !!}
@endif
@if($isMode('edit')) @include('components.forms.destroy-file', ['file' => $file]) @endif @endif
@push('js') @endpush