Ingress Policy:
    @php $qosIngress = $qosItems->where('ingress', '1') @endphp @if($qosIngress->count() == 0)
    No Policies
    @else @endif
     Egress Policy:
    @php $qosEgress = $qosItems->where('egress', '1') @endphp @if($qosEgress->count() == 0)
    No Policies
    @else @endif
@if($qosGraph) @php $graphType = $qosGraph->type; if ($qosGraph->type == 'routeros_tree') { $graphs = ['_traffic' => __('Traffic'), '_drop' => __('Dropped Packets')]; } elseif ($qosGraph->type == 'routeros_simple') { $graphs = ['_traffic' => __('Traffic'), '_drop' => __('Dropped Packets')]; } elseif ($qosGraph->type == 'cisco_cbqos_policymap' || $qosGraph->type == 'cisco_cbqos_classmap') { $graphs = ['_prebits' => __('Traffic (pre policy)'), '_postbits' => __('Traffic (post policy)'), '_qosdrops' => __('Traffic Drops'), '_prepkts' => __('Packets (pre policy)'), '_droppkts' => __('Packet Drops'), '_bufferdrops' => __('No Buffer Drops', )]; $graphType = 'cisco_cbqos'; } else { $graphs = []; } @endphp

{{ $qosGraph->title }}

@if(count($graphs) == 0) Graphs for type {{ $qosGraph->type }} need to be defined in resources/views/components/qos.blade.php @endif @foreach($graphs as $graphSuffix => $graphTitle) @endforeach
@endif