@foreach (config('defines.reports_tables') as $k_tables => $v_tables)
@foreach (config('defines.reports_filters_'.$k_tables) as $k_filters => $v_filters)
@php
switch ($k_filters) {
case 'account_id_owner':
case 'contact_id_owner':
case 'opportunities_id_owner':
case 'leads_id_owner':
$filter_array = $sales_users;
break;
case 'account_aff_countries':
case 'leads_aff_countries':
$filter_array = $countries;
break;
case 'account_tags':
case 'contact_tags':
case 'opportunities_tags':
case 'leads_tags':
$filter_array = $sales_tags;
break;
default:
$filter_array = config('defines.'.$v_filters['array_title']);
}
@endphp
@endforeach