@extends('layouts.admin.app') @section('title','Dashboard') @section('content')

Dashboard

@if($lowStockCount > 0)
⚠ Stok Obat Menipis! Ada {{ $lowStockCount }} obat yang stoknya di bawah minimum. Lihat
@endif {{-- ================== SUMMARY ROW ================== --}}
{{-- Reservasi Hari Ini --}}
Reservasi Hari Ini

{{ $todayAppointments }}

Janji temu hari ini
{{-- Total Pasien --}}
Total Pasien

{{ $totalPatients }}

Pasien terdaftar
{{-- Pendapatan Bulan Ini --}}
Pendapatan Bulan Ini

Rp {{ number_format($monthlyIncome ?? 0,0,',','.') }}

Total pembayaran lunas
{{-- Obat Terpakai --}}
Resep Bulan Ini

{{ $medicineUsed }}

Jumlah obat diresepkan
{{-- ================== SECOND ROW ================== --}}
{{-- Inbox Summary --}}
Inbox Contact
Total Pesan {{ $contactStats['total'] }}
Belum Dibaca {{ $contactStats['unread'] }}
Sudah Dibalas {{ $contactStats['replied'] }}
Pesan Hari Ini {{ $contactStats['today'] }}
Minggu Ini {{ $contactStats['this_week'] }}
Buka Inbox
{{-- Layanan Terlaris --}}
Layanan Terlaris
@if($topService)

{{ $topService->name }}

Digunakan {{ $topService->appointments_count }} kali

Harga: Rp {{ number_format($topService->price,0,',','.') }}

@else

Belum ada data layanan

@endif
{{-- ================== CHART ROW ================== --}}
Grafik Pendapatan Bulanan ({{ date('Y') }})
@endsection