@foreach($branch_data as $branch) @endforeach
Branch Sales Amount Patients AVG Sales/Pat Target Amount Forecast Amount Balance Amount
{{ $branch['branch_name'] }} {{ number_format($branch['current_total'], 2) }} {{ number_format($branch['patient_count']) }} {{ number_format($branch['avg_sales_patient'], 2) }} {{ number_format($branch['target'], 2) }} {{ number_format($branch['forecast_amount'], 2) }} {{ number_format($branch['balance'], 2) }}
@if(count($remainingMonths) > 0)

Monthly Target per Branch ({{ implode('-', array_values($remainingMonths)) }}):

Remaining Months Target Calculation:
@foreach($branch_data as $branch) @endforeach
Branch Current Performance Monthly Targets
{{ $branch['branch_name'] }}
Sales: {{ number_format($branch['current_total'], 2) }}
Patients: {{ number_format($branch['patient_count']) }}
Avg Sales/Pat: {{ number_format($branch['avg_sales_patient'], 2) }}
Target: {{ number_format($branch['target'], 2) }}
Forecast: {{ number_format($branch['forecast_amount'], 2) }}
Balance: {{ number_format($branch['balance'], 2) }}
@foreach($branch['monthly_targets'] as $month => $target)
{{ $remainingMonths[$month] }}: {{ number_format($target, 2) }}
@endforeach
@endif