{{-- Batch Result --}} @if ($batchResult)

Batch Created Successfully

Batch ID: {{ $batchResult['batch_id'] }}

Clinicians: {{ $batchResult['total_clinicians'] }}

Sessions: {{ $batchResult['total_sessions'] }}

Total Amount: ${{ number_format($batchResult['total_amount'], 2) }}

@endif {{-- Date Filter --}}
@foreach (['all' => 'All', 'last_month' => 'Last Month', 'last_week' => 'Last Week', 'custom' => 'Custom'] as $key => $label) @endforeach
@if ($dateFilter === 'custom')
to
@endif
{{-- Summary Box --}}

Clinicians

{{ $totals['clinicians'] }}

Date Range

@if ($totals['oldest_dos'] && $totals['newest_dos']) {{ \Carbon\Carbon::parse($totals['oldest_dos'])->format('m/d/Y') }} – {{ \Carbon\Carbon::parse($totals['newest_dos'])->format('m/d/Y') }} @else — @endif

Total Sessions

{{ $totals['total_sessions'] }}

Total Amount

${{ number_format($totals['total_amount'], 2) }}

{{-- Batch Button --}}
{{-- Auth Code Modal --}} @if ($showAuthModal)

Authorization Required

Enter the 4-digit authorization code to create a disbursement batch for {{ $totals['total_sessions'] }} session(s) totaling ${{ number_format($totals['total_amount'], 2) }}.

@if ($authError)

{{ $authError }}

@endif
@endif {{-- Pending Disbursements Table --}}
@forelse ($pendingSummary as $row) @empty @endforelse
Clinician Oldest DOS Newest DOS Sessions Amount
{{ $row->clinician?->display_name ?? 'Unknown' }}
{{ $row->clinician?->clinician_code ?? '—' }}
{{ $row->oldest_dos ? \Carbon\Carbon::parse($row->oldest_dos)->format('m/d/Y') : '—' }} {{ $row->newest_dos ? \Carbon\Carbon::parse($row->newest_dos)->format('m/d/Y') : '—' }} {{ $row->session_count }} ${{ number_format($row->total_amount, 2) }}
No pending disbursements found.
@if ($pendingSummary->isNotEmpty())

Showing {{ $pendingSummary->count() }} clinician(s)

@endif