@section('page-title', 'Dashboard')

Dashboard Overview

Medical Aid Management Platform - Zimbabwe

Active Members

{{ number_format($stats['total_members']) }}

Pending Claims

{{ number_format($stats['pending_claims']) }}

Total Awarded

${{ number_format($stats['total_awarded'], 2) }}

Total Shortfall

${{ number_format($stats['total_shortfall'], 2) }}

Claims Trend (Last 6 Months)

@php $maxAwarded = $monthlyTrends->max('awarded') ?: 1; @endphp
@forelse($monthlyTrends as $trend)
${{ number_format(($trend->awarded ?? 0) / 100, 0) }}
{{ \Carbon\Carbon::parse($trend->month . '-01')->format('M') }}
{{ $trend->count }}
@empty
No trend data available
@endforelse

Claims by Type

@php $maxTypeTotal = $claimsByType->max('total') ?: 1; $typeColors = ['consultation' => 'bg-blue-500', 'hospital' => 'bg-red-500', 'pharmacy' => 'bg-green-500', 'dental' => 'bg-purple-500', 'optical' => 'bg-yellow-500', 'maternity' => 'bg-pink-500', 'chronic' => 'bg-indigo-500', 'radiology' => 'bg-orange-500', 'laboratory' => 'bg-teal-500']; @endphp
@foreach($claimsByType as $type)
{{ $type->claim_type }} {{ $type->count }} claims | ${{ number_format(($type->total ?? 0) / 100, 2) }}
@endforeach

Claims by Status

@foreach($claimsByStatus as $status => $count)
{{ str_replace('_', ' ', $status) }}
{{ $count }}
@endforeach

Top 5 Providers

@foreach($topProviders as $provider) @if($provider->claims_count > 0)

{{ Str::limit($provider->name, 25) }}

{{ $provider->claims_count }} claims

${{ number_format(($provider->claims_sum_total_awarded_cents ?? 0) / 100, 0) }}
@endif @endforeach

Quick Actions

@can('create_claims') Submit New Claim @endcan @can('create_members') Register New Member @endcan @can('create_preauths') Request Pre-Authorization @endcan

Recent Claims

@forelse($recentClaims as $claim) @empty @endforelse
Claim # Member Provider Type Billed Awarded Status Date
{{ $claim->claim_number }} {{ $claim->member->full_name ?? 'N/A' }} {{ $claim->provider->name ?? 'N/A' }} {{ $claim->claim_type }} ${{ number_format($claim->total_billed_cents / 100, 2) }} ${{ number_format($claim->total_awarded_cents / 100, 2) }} {{ ucfirst(str_replace('_', ' ', $claim->status)) }} {{ $claim->service_date->format('d M Y') }}
No claims found.