@extends('layouts.admin') @section('title', 'PDF 快取管理') @section('content')
{{-- 標題 + 統計 --}}

PDF 快取檔案

已快取 {{ number_format($totalFiles) }} 份 PDF, 佔用 {{ $formatSize($totalSize) }}

@if(count($files) > 0 || count($folders) > 0) @endif
{{-- 提示訊息 --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- 麵包屑 --}} {{-- 搜尋 --}}
{{-- 內容區 --}}
{{-- 表頭 --}}
名稱
大小 / 數量
操作
{{-- 上一層 --}} @if($relativePath) @php $parentPath = dirname($relativePath); $parentPath = $parentPath === '.' ? '' : $parentPath; @endphp
..
@endif {{-- 資料夾 --}} @forelse($folders as $folder)
{{ $folder['name'] }}
{{ $folder['count'] }} 份
@csrf
@empty @if(count($files) === 0)

此資料夾是空的

下載考題後,PDF 會自動快取到這裡

@endif @endforelse {{-- 檔案 --}} @foreach($files as $file)
{{ $file['name'] }}
{{ $formatSize($file['size']) }}
@csrf
@endforeach
@endsection