@foreach ($active_units as $active_unit) @if ($active_unit->department_type != 2) @endif @endforeach
Agency Unit # Status Time Call # Description
{{ $active_unit->user_department->department->initials }} {{ $active_unit->user_department->badge_number }} ({{ $active_unit->display_name }})
{{ $active_unit->status }}
{{ $active_unit->time }}m
@foreach ($active_unit->calls as $call) {{ $call->id }} @if (!$loop->last) , @endif @endforeach
@if (auth()->user()->id == $active_unit->user_id) @endif
@if (auth()->user()->id == $active_unit->user_id)
@foreach ($calls as $call) @if ($call->attached_units->contains('id', $active_unit->id)) Remove From Call {{ $call->id }} @else Add To Call {{ $call->id }} @endif @endforeach
@endif
{{ $active_unit->description }}