@extends('layouts.admin') @section('title', __('Media Dashboard')) @section('content')

{{ __('Media Management') }}

{{ __('Overview of your media files and statistics') }}

{{ __('View Library') }}
{{ __('Total Files') }}
{{ $stats['total_files'] ?? 0 }}
{{ __('Total Size') }}
{{ $stats['total_size'] ?? '0 MB' }}
{{ __('Images') }}
{{ $stats['images'] ?? 0 }}
{{ __('Videos:') }} {{ $stats['videos'] ?? 0 }}
{{ __('This Week') }}
{{ $stats['this_week'] ?? 0 }}
{{ __('New uploads') }}
{{ __('Language Distribution') }}
🇺🇸
{{ $stats['english_files'] ?? 0 }}
{{ __('English') }}
🇸🇦
{{ $stats['arabic_files'] ?? 0 }}
{{ __('Arabic') }}
🌐
{{ $stats['bilingual_files'] ?? 0 }}
{{ __('Both') }}
{{ __('Storage Usage') }}
{{ __('Used:') }} {{ $stats['used_storage'] ?? '0 MB' }} {{ __('Available:') }} {{ $stats['available_storage'] ?? '100 MB' }}
{{ __('Recent Uploads') }}
@if(isset($recentUploads) && $recentUploads->count() > 0)
@foreach($recentUploads as $file) @endforeach
{{ __('Preview') }} {{ __('Name') }} {{ __('Type') }} {{ __('Language') }} {{ __('Size') }} {{ __('Uploaded') }} {{ __('Actions') }}
@if($file->is_image) {{ $file->alt_text }} @else @endif {{ $file->name }} @if($file->is_featured) @endif {{ ucfirst($file->type) }} @if($file->language == 'both') 🌐 {{ __('Both') }} @elseif($file->language == 'ar') 🇸🇦 {{ __('Arabic') }} @else 🇺🇸 {{ __('English') }} @endif {{ $file->formatted_size }} {{ $file->created_at->diffForHumans() }}
@csrf @method('DELETE')
@else

{{ __('No media files found. Upload your first file!') }}

{{ __('Upload Media') }}
@endif
{{ __('Collections') }}
@php $collections = \App\Models\MediaCollection::withCount('items')->limit(5)->get(); @endphp @if($collections->count() > 0)
    @foreach($collections as $collection)
  • {{ $collection->name }} {{ $collection->items_count }}
  • @endforeach
@if(\App\Models\MediaCollection::count() > 5) {{ __('View All Collections') }} @endif @else

{{ __('No collections found. Create your first collection!') }}

@endif
@endsection @push('styles') @endpush @push('scripts') @endpush