@if($showMeta) @foreach($headers['meta'] as $name => $value) @endforeach @endif @if ($showHeader) @foreach ($columns as $colName => $colData) @endforeach @endif @foreach (App\Ticket::filials() as $filial) @php $f_tickets = $tickets->where('filial', '=', $filial['id'])->where('in_note', '=', 0); @endphp @foreach (App\Ticket::network_types() as $network_type) @php $ft_tickets = $f_tickets->where('network_type', '=', $network_type['id']); @endphp @include('reports.templates.tickets.filtered-tickets', ['tickets' => $ft_tickets, 'columns' => $columns]) @endforeach @php $ft_tickets = $f_tickets->where('network_type', '=', null); @endphp @if($ft_tickets->isNotEmpty()) @include('reports.templates.tickets.filtered-tickets', ['tickets' => $ft_tickets, 'columns' => $columns]) @endif @endforeach @php $f_tickets = $tickets->where('filial', '=', null)->where('in_note', '=', 0); @endphp @if($f_tickets->isNotEmpty()) @foreach (App\Ticket::network_types() as $network_type) @php $ft_tickets = $f_tickets->where('network_type', '=', $network_type['id']); @endphp @if($ft_tickets->isNotEmpty()) @include('reports.templates.tickets.filtered-tickets', ['tickets' => $ft_tickets, 'columns' => $columns]) @endif @endforeach @php $ft_tickets = $f_tickets->where('network_type', '=', null); @endphp @if($ft_tickets->isNotEmpty()) @include('reports.templates.tickets.filtered-tickets', ['tickets' => $ft_tickets, 'columns' => $columns]) @endif @endif @php $f_tickets = $tickets->where('in_note', '=', 1); @endphp @if($f_tickets->isNotEmpty()) @include('reports.templates.tickets.filtered-tickets', ['tickets' => $f_tickets, 'columns' => $columns]) @endif

{{ trim($headers['title']) }}

{{ $name }} {{ ucwords($value) }}
{{ $colName }}
{{ $filial['label'] }}
{{ $network_type['label'] }}
Без типа сети
Без филиала
{{ $network_type['label'] }}
Без типа сети
В примечание