@extends('layouts.app') @section('title', $category->name . ' — ' . $systemName) @push('styles') @include('isms._drive_styles') @endpush @section('content')
{{-- ── Sidebar ── --}} @include('isms._sidebar') {{-- ── Main ── --}}
@if(session('success'))
{{ session('success') }}
@endif
{{-- Section title (breadcrumb) --}}
{{ $systemName }} @if($category->parent) {{ $category->parent->name }} @endif {{ $category->name }}
{{-- Filter chips + view toggle --}}
@if($children->isEmpty() && $documents->isEmpty())
此目錄目前沒有內容 @if($isAdmin)
上傳文件 @endif
@else {{-- ===== GRID VIEW ===== --}}
@if($children->isNotEmpty())
子目錄
@foreach($children as $child) @php $count = $isAdmin ? $child->total_docs : $child->published_docs; @endphp
{{ $child->name }}
{{ $count }} 份文件
開啟
@endforeach
@endif @if($documents->isNotEmpty())
文件
@endif
{{-- #viewGrid --}} {{-- ===== LIST VIEW ===== --}} {{-- #viewList --}} @endif
{{-- #mainContent --}}
{{-- .drive-main --}} {{-- .drive-wrap --}} @endsection @push('scripts') @endpush