@props([ 'filepath', 'object', 'showfile_routename', 'deletefile_routename', ])
{{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(str_plural(strtolower(class_basename(get_class($object)))))))
@else
{{ trans('general.preview_not_available') }}
@endif
@else
|
{{ $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))
|
{{ $file->created_at }} | {{ $file->created_by }} |