@extends('layout.backend') @section('title', 'Assistentes') @section('content') {{-- BARRA DE BOTÕES --}} {{-- ALERTAS --}} @include('components.widget.alerts') {{-- FILTROS --}} @if(count($regionList) > 0)
Assistentes
Lista de Assistentes
@foreach($regionList as $region) @if(!$cityList[$region->id]) @continue @endif
{{$region->name }} - {{ \App\Helpers\AppHelper::count_recursive_array($coworkerList[$region->id]) }}
@foreach($cityList[$region->id] as $city) @if(!$city || !$cityList[$region->id][$city->id]) @continue @endif @if(!$coworkerList[$region->id][$city->id]) @continue @endif
{{ $city->city }} - {{ count($coworkerList[$region->id][$city->id]) }}
@foreach($coworkerList[$region->id][$city->id] as $coworker) @php ( $bgcolor = ($bgcolor=='200' ? '300' : '200') ) @endphp
{{ $coworker->name }} @if(isset($specialityList[$coworker->id])) - {{ count($specialityList[$coworker->id]) }} @endif
@if(isset($specialityList[$coworker->id]))
@endif
@endforeach
@endforeach
@endforeach
@else
Atenção: Nenhum assistente encontrado.
@endif @endsection