@include('partials.asset-bulk-actions')
{{ Form::close() }}
@if ($model->uploads->count() > 0)
{{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('table.actions') }} |
@foreach ($model->uploads as $file)
|
@if ((Storage::exists('private_uploads/assetmodels/'.$file->filename)) && ( Helper::checkUploadIsImage($file->get_src('assetmodels'))))
@endif
|
@if (Storage::exists('private_uploads/assetmodels/'.$file->filename))
{{ $file->filename }}
@else
{{ $file->filename }}
@endif
|
{{ (Storage::exists('private_uploads/assetmodels/'.$file->filename)) ? Helper::formatFilesizeUnits(Storage::size('private_uploads/assetmodels/'.$file->filename)) : '' }}
|
@if ($file->note)
{{ $file->note }}
@endif
|
@if (($file->filename) && (Storage::exists('private_uploads/assetmodels/'.$file->filename)))
@endif
|
@if ($file->created_at)
{{ Helper::getFormattedDateObject($file->created_at, 'datetime', false) }}
@endif
|
@can('update', \App\Models\AssetModel::class)
@endcan
|
@endforeach
@else
{{ trans('general.no_results') }}
@endif