@foreach ($builder as $row) @php $row_active = true; if($row->is_disabled()){ $row_active = false; } $auth_view = $row->get_auth_view(); if($row_active && $auth_view !== 'all'){ if(!is_auth() && $auth_view == 'private'){ $row_active = false; } if(is_auth() && $auth_view == 'public'){ $row_active = false; } } if($row_active && get_network_status()){ if(!$row->have_network(get_current_network())){ $row_active = false; } } $auth = $row->get_auth(); if($row_active && $auth !== 'all'){ if(is_auth()){ if(is_customer() && $auth != 'customers'){ $row_active = false; } if(is_agent() && $auth != 'agents'){ $row_active = false; } } } @endphp @if($row_active)