@php $currency = config('care.billing.currency'); $operationalCards = [ [ 'label' => 'Patients today', 'value' => number_format($operational['patients_today']), 'href' => route('care.patients.index'), 'icon' => '', ], [ 'label' => 'Appointments today', 'value' => number_format($operational['appointments_today']), 'href' => route('care.appointments.index'), 'icon' => '', ], [ 'label' => 'Open bills', 'value' => number_format($operational['open_bills']), 'href' => route('care.bills.index'), 'icon' => '', ], [ 'label' => 'Revenue today', 'value' => $currency.' '.number_format($operational['revenue_today_minor'] / 100, 2), 'href' => route('care.bills.index'), 'icon' => '', 'valueClass' => 'text-emerald-700', ], [ 'label' => 'Pending lab', 'value' => number_format($operational['pending_lab']), 'href' => route('care.lab.queue.index'), 'icon' => '', ], ]; $organizationCards = [ [ 'label' => 'Active branches', 'value' => number_format($stats['branches']), 'href' => route('care.branches.index'), 'icon' => '', ], [ 'label' => 'Team members', 'value' => number_format($stats['team_members']), 'href' => route('care.members.index'), 'icon' => '', ], [ 'label' => 'Departments', 'value' => number_format($stats['departments']), 'href' => route('care.departments.index'), 'icon' => '', ], ]; @endphp

{{ $organization->name }}

@include('partials.mobile-header-btn', [ 'href' => route('care.patients.create'), 'label' => 'Register patient', 'desktopLabel' => 'Register patient', 'variant' => 'outline', 'showDesktopIcon' => false, ]) @include('partials.mobile-header-btn', [ 'href' => route('care.appointments.create'), 'label' => 'Book appointment', 'desktopLabel' => 'Book appointment', 'variant' => 'primary', ])
@include('partials.upgrade-banner')
@foreach ($operationalCards as $card)
{!! $card['icon'] !!}

{{ $card['label'] }}

{{ $card['value'] }}

@endforeach
@foreach ($organizationCards as $card)
{!! $card['icon'] !!}

{{ $card['label'] }}

{{ $card['value'] }}

@endforeach

Branches

@include('partials.mobile-icon-link', [ 'href' => route('care.branches.index'), 'label' => 'Manage branches', 'icon' => 'arrow', ])
@forelse ($branches as $branch)

{{ $branch->name }}

{{ $branch->departments_count }} department(s) ยท {{ $branch->address ?? 'No address' }}

@unless ($branch->is_active) Inactive @endunless
@empty

No branches configured yet.

@endforelse