{{-- resources/views/dashboard.blade.php --}} @extends('layouts.appd') @section('title', '儀表板') @push('styles') @endpush @section('content')
{{-- 歡迎詞 --}}

👋 歡迎回來,{{ Auth::user()->name }}!

{{-- 待審核提醒 --}} @php $user = Auth::user(); $isSup = $user->role === 'supervisor'; $isAdm = $user->role === 'admin'; $printed = false; // 用來判斷是否有列出任何待審核項目 @endphp @if ($isSup || $isAdm || $handoverReceiverCount > 0)
📋 待審核項目
@endif {{-- ===== 待確認工作交接(接收人) ===== --}} @if($receiverHandovers->isNotEmpty())
我需要確認的工作交接({{ $receiverHandovers->count() }})
@endif {{-- ===== 資料夾縮圖(iPhone 風 3×3) + 未分類卡片 ===== --}}
{{-- 資料夾縮圖(注意:元件名稱是 ios-**folders**-link) --}} @foreach ($folders as $folder)
@endforeach {{-- 未分類卡片(需要的話保留) --}} @foreach ($noFolderCards as $card)
@php $partial = $card->blade_view ?? null; @endphp @if ($partial && View::exists($partial)) @include($partial, ['card' => $card]) @else
{{ $card->name }}
@if (!empty($card->route_name)) 進入 @endif
@endif
@endforeach
@endsection @push('scripts') @endpush