@extends('user::layouts/panel') {{-- Css --}} @push('module-links') @vite(['Modules/User/resources/assets/css/panel/dashboard.css']) @endpush {{-- Content --}} @section('module-content')
{{-- 用戶基本資訊卡片 --}}
個人基本資料
姓名:
{{ $user->name }}
電子信箱:
{{ $user->email }}
角色:
{{ $roleString }} @if(!empty($userDept)) {{ $userDept }} @endif
{{-- 狀態 --}}
狀態:
@if($user->status ?? true) 啟用 @else 停用 @endif
@if(!$user->hasRole('admin')) {{-- 今日工時填報狀態 --}}
今日工時:
@if($todayTimeReport['is_weekend']) 週末休息 @else {{ $todayTimeReport['completed'] ? '已達標' : '未達標' }} {{ $todayTimeReport['reported_hours'] }} / {{ $todayTimeReport['required_hours'] }} 小時 {{ $todayTimeReport['percentage'] }}% @if(!$todayTimeReport['completed']) 填報 @endif @endif
@endif {{-- 帳號創建時間 --}}
創建時間:
{{ $user->created_at->format('Y-m-d H:i:s') }}
{{-- 最後登入時間 --}}
最後登入:
{{ $lastLogin ? $lastLogin->format('Y-m-d H:i:s') : '尚未登入' }}
{{-- 登入紀錄卡片 --}}
登入紀錄
@if(count($loginLogs) > 0)
@foreach ($loginLogs as $log) @endforeach
登入時間 登入來源
{{ $log->created_at }} {{ $log->ipaddress }}
@else

尚無登入紀錄

@endif
{{-- 年度工時圖表卡片(僅管理員可見) --}} @if($user->hasRole('admin'))
工時統計圖表
點擊長條圖可進行互動
{{-- 篩選控制區 --}}
{{-- 第一行:年份(多選)--}}
{{-- 第二行:其他篩選器 --}}
{{-- 時間粒度 --}}
{{-- 部門篩選 --}}
{{-- 專案類型篩選 --}}
{{-- 重置按鈕 --}}
{{-- 麵包屑導航 --}} {{-- 圖表容器 --}}
{{-- 數據表格 --}}

數據明細
@endif @endsection {{-- META --}} @push('meta') @if($user->hasRole('admin')) @endif @endpush {{-- JS --}} @push('module-scripts') @if($user->hasRole('admin')) @vite(['Modules/User/resources/assets/js/panel/dashboard.js']) @endif @endpush