@foreach ($calls as $call) @endforeach
Call #
Type
Nature @if ($nature_filter) (({{ $nature_filter }} - {{ $call_natures[$nature_filter]['name'] }})) @else ((ALL CALLS)) @endif
Location City Pri Status Time Units
{{ $call->id }} {{ $call->type_name }} {{ $call->nature }} - {{ $call->nature_info ? $call->nature_info['name'] : 'custom nature' }} {{ $call->location }} {{ $call->city }}
{{ $call->priority }}
1 2 3 4 5
{{ $call->status }} - {{ $call->status_info['name'] }}
@foreach ($call_statuses as $status => $props) {{ $status }} - {{ $props['name'] }} @endforeach
{{ $call->time }}m
@foreach ($call->attached_units as $unit) {{ $unit->user_department->badge_number }} @if (!$loop->last) , @endif @endforeach @if (auth()->user()->active_unit->department_type != 2) @if ($call->attached_units->contains(auth()->user()->active_unit->id)) @else @endif @endif
{{-- @foreach ($active_units as $unit) @if (in_array($unit->badge_number, $call->nice_units)) {{ $unit->badge_number }} @else {{ $unit->badge_number }} @endif @endforeach --}}