@props([ 'filepath', 'object', 'showfile_routename', 'deletefile_routename', ])
@foreach ($object->uploads as $file) @endforeach
{{trans('general.id')}} {{trans('general.file_type')}} {{ trans('general.image') }} {{ trans('general.file_name') }} {{ trans('general.filesize') }} {{ trans('general.notes') }} {{ trans('general.download') }} {{ trans('general.created_at') }} {{ trans('general.created_by') }} {{ trans('table.actions') }}
{{ $file->id }} @if (Storage::exists($filepath.$file->filename)) {{ pathinfo($filepath.$file->filename, PATHINFO_EXTENSION) }} @endif @if (($file->filename) && (Storage::exists($filepath.$file->filename))) @if (Helper::checkUploadIsImage($file->get_src($object))) @else {{ trans('general.preview_not_available') }} @endif @else {{ trans('general.file_not_found') }} @endif {{ $file->filename }} {{ (Storage::exists($filepath.$file->filename)) ? Helper::formatFilesizeUnits(Storage::size($filepath.$file->filename)) : '' }} @if ($file->note) {{ $file->note }} @endif @if ($file->filename) @if (Storage::exists($filepath.$file->filename)) {{ trans('general.download') }} @endif @endif {{ $file->created_at }} {{ $file->created_by }} {{ trans('general.delete') }}