@extends('layouts.dashboard') @section('title', t('إدارة الكاش','Cache Manager')) @section('page-title','🗄️ '.t('إدارة التخزين المؤقت','Cache Manager')) @section('content')
@foreach([ ['views', '🖼️', t('Views Cache','Views Cache'), t('صفحات Blade المُحوَّلة','Compiled Blade views'), $cacheInfo['views'].' '.t('ملفات','files')], ['bootstrap', '⚙️', t('Bootstrap Cache','Bootstrap Cache'), t('ملفات التشغيل الأساسية','Core bootstrap files'), $cacheInfo['bootstrap'].' '.t('ملفات','files')], ['data', '📦', t('Data Cache','Data Cache'), t('بيانات مؤقتة متنوعة','Various cached data'), '—'], ['logs', '📋', t('Laravel Log','Laravel Log'), t('سجل أخطاء التطبيق','Application error log'), $cacheInfo['log_size']], ] as [$type, $icon, $name, $desc, $size])
{{ $icon }}
{{ $name }}
{{ $desc }}
{{ $size }}
@endforeach
{{-- Clear All --}}
⚠️

{{ t('مسح كل الكاش دفعة واحدة','Clear All Cache at Once') }}

{{ t('سيتم إعادة بناء الكاش تلقائياً عند أول طلب','Cache will be rebuilt automatically on next request') }}

{{-- Laravel Log Viewer --}}

📋 {{ t('آخر أخطاء Laravel','Latest Laravel Errors') }}

@php $logFile = storage_path('logs/laravel.log'); $logContent = ''; if (file_exists($logFile) && filesize($logFile) > 0) { $lines = array_slice(file($logFile) ?: [], -50); $logContent = implode('', $lines); } @endphp @if($logContent)
{{ $logContent }}
@else
✅ {{ t('السجل فارغ — لا يوجد أخطاء','Log is empty — no errors') }}
@endif
@endsection @section('scripts') @endsection