@extends('admin/layout') @section('title') {{ labels('admin_labels.media', 'Media') }} @endsection @section('content') @php use App\Services\MediaService; @endphp {{ labels('admin_labels.select_file', 'Select File') }} {{ labels('admin_labels.upload_new', 'Upload New') }} Media Type Images Audio Video Archive Spreadsheet Documents @if ($media->isempty()) No media found!! @else @foreach ($media as $row) @php $isPublicDisk = $row->disk == 'public' ? 1 : 0; $imagePath = $isPublicDisk ? app(MediaService::class)->getImageUrl( $row->sub_directory . '/' . $row->file_name, '', '', $row->type, ) : $row->object_url; $delete_url = route('admin.media.destroy', $row->id); @endphp {{ Str::limit($row->name, 22, '...') }} {{ $row->size }} KB {{ config('app.url') . 'storage' . $row->sub_directory . '/' . $row->file_name }} {{ $row->sub_directory . '/' . $row->file_name }} @endforeach @endif @csrf {{ labels('admin_labels.upload', 'Upload') }} @endsection
No media found!!
{{ $row->size }} KB