@php $type = ''; if ($data['type'] == 'budget_estimation_summary'){ $type = 'Budget Estimation Summary'; } if ($data['type'] == 'budget_monitoring_bar_chart'){ $type = 'Budget Monitoring Summary'; $fiscal_year_id = $data['calendar_id']; } @endphp