@extends('layouts.main') @section('title', 'Dashboard Andalan') @section('css') @php $dashboardCssPath = public_path('assets/css/dashboard.css'); $dashboardCssVersion = file_exists($dashboardCssPath) ? filemtime($dashboardCssPath) : time(); $sweetAlertCssPath = public_path('assets/vendor/sweetalert2/sweetalert2.min.css'); $sweetAlertCssVersion = file_exists($sweetAlertCssPath) ? filemtime($sweetAlertCssPath) : time(); @endphp @endsection @section('navbarTitle', 'Dashboard') @section('content') @php $showDashboardMenuCarousel = false; $showDashboardInactiveShortcuts = false; $dashboardUser = auth()->user(); $canViewDashboardEmployeeShortcut = false; $isClockOutBlocked = ($hasCheckedOutToday ?? false) || ($hasEarlyDepartureExceptionToday ?? false) || !($canClockOutNow ?? true); $isClockOutTooEarly = !($canClockOutNow ?? true); if ($dashboardUser instanceof \App\Models\User) { $canViewDashboardEmployeeShortcut = $dashboardUser->hasAnyPositionPermission([ 'view-authorization', 'view-employee-database', ]); } $dashboardTaskProjectOptions = collect($dashboardTaskProjectOptions ?? []); $dashboardTaskAssignableStaffOptions = collect($dashboardTaskAssignableStaffOptions ?? []); $dashboardTaskProjectOptionsByEmployee = is_array($dashboardTaskProjectOptionsByEmployee ?? null) ? $dashboardTaskProjectOptionsByEmployee : []; $dashboardTaskDefaultAssigneeEmployeeId = (string) ($dashboardTaskAssignableStaffOptions->first()['id'] ?? ''); @endphp
Ensure your device location is enabled and you are within the authorized work area.
Date & Time
{{ now('Asia/Jakarta')->format('d M | H:i:s') }}Clock In
{{ $todayAttendance?->clock_in?->format('H:i') ?? '--:--' }}Ensure all your daily tasks and status reports have been updated before clocking out.
Date & Time
{{ now('Asia/Jakarta')->format('d M | H:i:s') }}Clock Out
{{ $todayAttendance?->clock_out?->format('H:i') ?? '--:--' }}Track your task and see your daily and monthly progress.
Month ({{ $dashboardTaskMonthLabel ?? now('Asia/Jakarta')->format('M') }})
{{ (int) ($dashboardMonthlyTaskTotal ?? 0) }} TaskToday ({{ $dashboardTaskTodayLabel ?? now('Asia/Jakarta')->format('D') }})
{{ (int) ($dashboardTodayDeadlineTaskTotal ?? 0) }} Task