@extends('layouts.app') @section('title', $systemName) @push('styles') @include('isms._drive_styles') @endpush @section('content')
{{-- ── Sidebar ── --}} @include('isms._sidebar') {{-- ── Main ── --}}
@if(session('success'))
{{ session('success') }}
@endif
{{-- 搜尋 --}}
@if($search) 清除 @endif
@if($search) {{-- ── 搜尋結果 ── --}}
搜尋「{{ $search }}」— {{ $searchResults->count() }} 筆
@if($searchResults->isEmpty())
查無符合的文件
@else
名稱
類型
擁有者
更新日期
@foreach($searchResults as $doc) @php $catName = $doc->category ? ($doc->category->parent ? $doc->category->parent->name . ' › ' . $doc->category->name : $doc->category->name) : '—'; @endphp
{{ $doc->title }}@if(!$doc->is_published) 草稿@endif
{{ $catName }}
文件
{{ $doc->uploader?->name ?? '—' }}
{{ $doc->updated_at->format('Y-m-d') }}
@if($isAdmin) @endif
@endforeach
@endif @else {{-- ── 目錄列表 ── --}}
{{ $systemName }}
@if($categories->isEmpty())
尚無任何目錄 @if($isAdmin)
@endif
@else {{-- ===== GRID VIEW ===== --}} {{-- ===== LIST VIEW ===== --}} @endif @endif
{{-- #mainContent --}} @if($isAdmin) {{-- 拖曳上傳 overlay --}} {{-- 隱藏的 file input --}} {{-- 上傳進度 toast --}}
@endif
{{-- .drive-main --}}
{{-- .drive-wrap --}} @endsection @push('scripts') @endpush