@section('page-title', 'Provider Payments')

Provider Claim Payments

Track, filter and settle claims payments to providers

@if($pendingByProvider->isNotEmpty()) {{ $pendingCount }} claims pending · ${{ number_format($pendingTotal / 100, 2) }} outstanding @endif Finance Overview
@foreach([ 'pending' => ['label' => 'Pending Settlement', 'color' => 'amber'], 'paid' => ['label' => 'Paid', 'color' => 'green'], 'all' => ['label' => 'All Claims', 'color' => 'blue'], 'batches' => ['label' => 'Payment Batches', 'color' => 'indigo'], ] as $key => $cfg) {{ $cfg['label'] }} @if($key === 'pending' && $pendingCount > 0) {{ $pendingCount }} @endif @endforeach
@if($tab !== 'batches')
Reset
@endif
@if($tab === 'batches')

Payment Batches

@forelse($batches as $batch) @empty @endforelse
Batch # Provider Claims Amount Method Reference Date Status
{{ $batch->batch_number }} {{ $batch->provider->name ?? 'N/A' }} {{ $batch->claim_count }} ${{ number_format($batch->total_amount_cents / 100, 2) }} {{ $batch->payment_method ?? '—' }} {{ $batch->payment_reference ?? '—' }} {{ $batch->paid_at?->format('d M Y') ?? $batch->created_at->format('d M Y') }} {{ ucfirst($batch->status) }}
No payment batches found.
{{ $batches->links() }}
@else @if($tab === 'pending' && $pendingByProvider->isNotEmpty())

Outstanding by Provider — Settle These

${{ number_format($pendingTotal / 100, 2) }} total
@foreach($pendingByProvider->sortByDesc('total_amount') as $pending)

{{ $pending->provider->name ?? 'Unknown' }}

{{ $pending->claim_count }} claims · {{ $pending->currency }}

${{ number_format($pending->total_amount / 100, 2) }}

@endforeach
@endif

@if($tab === 'pending') Claims Awaiting Payment @elseif($tab === 'paid') Paid Claims @else All Claims (Pending + Paid) @endif

{{ $claims->total() }} result(s)
@if($tab === 'pending') @endif @forelse($claims as $claim) @if($tab === 'pending') @endif @empty @endforelse
Claim # Member Provider Service Date Billed Awarded Status Paid AtAction
{{ $claim->claim_number }}

{{ $claim->member->full_name ?? 'N/A' }}

{{ $claim->member->member_number ?? '' }}

{{ $claim->provider->name ?? 'N/A' }} {{ $claim->service_date->format('d M Y') }} ${{ number_format($claim->total_billed_cents / 100, 2) }} ${{ number_format($claim->total_awarded_cents / 100, 2) }} {{ ucfirst(str_replace('_', ' ', $claim->status)) }} {{ $claim->paid_at?->format('d M Y') ?? '—' }}
@if($tab === 'pending') No claims pending payment. @elseif($tab === 'paid') No paid claims found. @else No claims found. @endif
{{ $claims->links() }}
@endif