@extends('layouts.app') @section('title', __('dashboard.Home')) @section('page_heading', __('dashboard.Home')) @section('content') @php $accent = [ 'primary' => ['bg'=>'#eff6ff','color'=>'#2563eb','dark_bg'=>'rgba(37,99,235,.16)','dark_color'=>'#93c5fd'], 'success' => ['bg'=>'#ecfdf5','color'=>'#059669','dark_bg'=>'rgba(5,150,105,.16)','dark_color'=>'#6ee7b7'], 'warning' => ['bg'=>'#fff7ed','color'=>'#ea580c','dark_bg'=>'rgba(234,88,12,.16)','dark_color'=>'#fdba74'], 'danger' => ['bg'=>'#fef2f2','color'=>'#dc2626','dark_bg'=>'rgba(220,38,38,.16)','dark_color'=>'#fca5a5'], 'dark' => ['bg'=>'#f8fafc','color'=>'#475569','dark_bg'=>'rgba(148,163,184,.16)','dark_color'=>'#cbd5e1'], ]; @endphp
@foreach($stats as $s) @php $c = $accent[$s['accent']] ?? $accent['primary']; @endphp
{{ $s['value'] }}
{{ $s['label'] }}
@endforeach
{{ __('dashboard.dashboard_today_operations') }} {{ $todayAppointmentsCount }}
@foreach($todayLists as $section) @php $c = $accent[$section['theme']] ?? $accent['primary']; @endphp
{{ $section['title'] }}
{{ $section['count'] }}
@forelse($section['items'] as $item)
#{{ $item['id'] }}
{{ $item['customer_name'] }}
@if($item['date']) {{ $item['date'] }} @endif
@empty
{{ __('dashboard.dashboard_no_records_today') }}
@endforelse
@endforeach
@if($overdueAppointmentsCount > 0)
{{ __('dashboard.dashboard_attention_required') }} {{ $overdueAppointmentsCount }}
@foreach($overdueLists as $section) @php $c = $accent[$section['theme']] ?? $accent['danger']; @endphp
{{ $section['title'] }}
{{ $section['count'] }}
@forelse($section['items'] as $item)
#{{ $item['id'] }}
{{ $item['customer_name'] }}
@if($item['date']) {{ $item['date'] }} @endif
@empty
{{ __('dashboard.dashboard_no_overdue_records') }}
@endforelse
@endforeach
@endif
@endsection