@extends('adminlte::page') @section('title', 'Dashboard') @section('content_header')

Welcome, {{ $user->name }}!

@stop @section('content') {{-- Profile Summary Card - Desktop --}}

{{ $user->name }}

{{ $user->email }}
@if($employee && $employee->photo)
User Avatar
@else
User Avatar
@endif
{{-- Profile Summary Card - Mobile --}}
@if($employee && $employee->photo) User Avatar @else User Avatar @endif

{{ $user->name }}

{{ $user->email }}

EMPLOYEE ID
{{ $employee->employee_id ?? 'N/A' }}
DEPARTMENT
{{ $employee->department->name ?? 'N/A' }}
DESIGNATION
{{ $employee->designation->name ?? 'N/A' }}
{{-- Attendance Summary Card --}}

My Attendance (This Month)

@can('mark own attendance') @endcan @can('view own attendance') @endcan
@if($attendanceStats)
Days Present {{ $attendanceStats['days_present'] }}
Days On Leave {{ $attendanceStats['days_on_leave'] }}
Total OT {{ $attendanceStats['total_ot'] >= 0 ? '+' : '' }}{{ number_format($attendanceStats['total_ot'], 2) }} hrs
Pending Approvals {{ $attendanceStats['pending_approvals'] }}
@else
No employee record found for your account.
@endif
{{-- Petty Cash Summary Card --}}

My Petty Cash

@can('view own petty cash') @endcan
@if($pettyCashStats)

{{ $pettyCashStats['account_name'] }}

Current Balance {{ number_format($pettyCashStats['balance'], 2) }}
Pending Expenses {{ $pettyCashStats['pending_expenses'] }}
Approved This Month {{ number_format($pettyCashStats['approved_this_month'], 2) }}
@can('add petty cash expense') @endcan @else
No petty cash account assigned to you.
@endif
{{-- Quick Actions --}}

Quick Actions

@can('mark own attendance') @endcan @can('view own attendance') @endcan @can('view own petty cash') @endcan @can('add petty cash expense') @endcan
@stop