@extends('layouts.app') @section('title', 'Facility Endorsements') @section('title-flex')
Member | ATC Active | @foreach($ratings as $r){{ $r->name }} | @endforeach|
---|---|---|---|
@can('view', $u) {{ $u->name }} ({{ $u->id }}) @else {{ $u->name }} ({{ $u->id }}) @endcan | @if($u->isAtcActive()) Yes @else Inactive @endif | @foreach($ratings as $r) @php $found = false; @endphp @foreach($u->endorsements->where('type', 'MASC')->where('expired', false)->where('revoked', false) as $e) @if($e->ratings->first()->id == $r->id)Approved | @php $found = true; @endphp @break @endif @endforeach @if(!$found)@endif @endforeach |