@extends('seller/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') }}
@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('seller.media.destroy', $row->id); @endphp Avatar
{{ 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
25 50 75
{{ $media->onEachSide(1)->appends(request()->query())->links('pagination::bootstrap-4') }}
@csrf
@endsection