Files
ladill-care/resources/views/care/dashboard.blade.php
T
isaaccladandCursor 6c9c742ed8
Deploy Ladill Care / deploy (push) Failing after 13s
Initial Ladill Care release.
Healthcare management app: patients, appointments, consultations, lab,
pharmacy inventory, billing, and reports at care.ladill.com.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 11:36:22 +00:00

64 lines
3.4 KiB
PHP

<x-app-layout title="Dashboard">
<div class="mb-6">
<h1 class="text-2xl font-semibold text-slate-900">{{ $organization->name }}</h1>
<p class="mt-1 text-sm text-slate-600">Healthcare management dashboard</p>
</div>
<div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-5">
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Patients today</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $operational['patients_today'] }}</p>
</div>
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Appointments today</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $operational['appointments_today'] }}</p>
</div>
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Open bills</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $operational['open_bills'] }}</p>
</div>
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Revenue today</p>
<p class="mt-2 text-3xl font-semibold text-emerald-700">{{ config('care.billing.currency') }} {{ number_format($operational['revenue_today_minor'] / 100, 2) }}</p>
</div>
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Pending lab</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $operational['pending_lab'] }}</p>
</div>
</div>
<div class="mt-6 grid gap-4 sm:grid-cols-3">
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Active branches</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $stats['branches'] }}</p>
</div>
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Team members</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $stats['team_members'] }}</p>
</div>
<div class="rounded-2xl border border-slate-200 bg-white p-5">
<p class="text-sm text-slate-500">Departments</p>
<p class="mt-2 text-3xl font-semibold text-slate-900">{{ $stats['departments'] }}</p>
</div>
</div>
<div class="mt-8 rounded-2xl border border-slate-200 bg-white p-6">
<h2 class="text-lg font-semibold text-slate-900">Branches</h2>
<div class="mt-4 space-y-3">
@forelse ($branches as $branch)
<div class="flex items-center justify-between rounded-xl border border-slate-100 px-4 py-3">
<div>
<p class="font-medium text-slate-900">{{ $branch->name }}</p>
<p class="text-sm text-slate-500">{{ $branch->departments_count }} department(s) · {{ $branch->address ?? 'No address' }}</p>
</div>
@unless ($branch->is_active)
<span class="rounded-full bg-slate-100 px-2 py-1 text-xs text-slate-600">Inactive</span>
@endunless
</div>
@empty
<p class="text-sm text-slate-500">No branches configured yet.</p>
@endforelse
</div>
</div>
</x-app-layout>