@extends('Staff.layout') @section('content')
{{-- Welcome Card --}}
@if($staff->profile_photo) @else @endif

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

{{ $staff->designation ?? ($staff->role ?? $staff->department) }}  •  {{ date('l, d M Y') }}

{{-- Stats --}} @if(isset($stats['patients']))

{{ $stats['patients'] }}

Total Patients

@endif @if(isset($stats['appointments']))

{{ $stats['appointments'] }}

Today's Appointments

@endif @if(isset($stats['followups']))

{{ $stats['followups'] }}

Pending Follow Ups

@endif @if(isset($stats['products']))

{{ $stats['products'] }}

Products

@endif @if(isset($stats['treatments']))

{{ $stats['treatments'] }}

Active Treatments

@endif
{{-- Quick Access --}}
Quick Access
@php $menuItems = [ 'patient' => ['icon' => 'tabler-users', 'label' => 'Patients', 'route' => 'patient'], 'appointment' => ['icon' => 'tabler-calendar-check', 'label' => 'Appointments', 'route' => 'appointment_report'], 'follow_ups' => ['icon' => 'tabler-report', 'label' => 'Follow Ups', 'route' => 'follow_ups'], 'product' => ['icon' => 'tabler-box', 'label' => 'Products', 'route' => 'product'], 'treatments' => ['icon' => 'tabler-vaccine', 'label' => 'Treatments', 'route' => 'treatments'], 'billing' => ['icon' => 'tabler-file-invoice', 'label' => 'Billing', 'route' => 'billing'], 'attendance' => ['icon' => 'tabler-calendar', 'label' => 'Attendance', 'route' => 'attendance'], 'doctor' => ['icon' => 'tabler-stethoscope', 'label' => 'Doctors', 'route' => 'doctor'], 'staff_list' => ['icon' => 'tabler-id-badge', 'label' => 'Staff', 'route' => 'staff_list'], ]; @endphp @foreach($menu as $item) @if(isset($menuItems[$item])) @php $m = $menuItems[$item]; @endphp @endif @endforeach
@endsection