@extends('layouts.app') @section('title', 'Facility Endorsements') @section('title-flex')
@if (\Auth::user()->isModeratorOrAbove()) Add new endorsement @endif
@endsection @section('header') @vite(['resources/sass/bootstrap-table.scss', 'resources/js/bootstrap-table.js']) @endsection @section('content')
Facility Endorsements
@foreach($ratings as $r) @endforeach @foreach($users as $u) @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) @php $found = true; @endphp @break @endif @endforeach @if(!$found) @endif @endforeach @endforeach
Member ATC Active{{ $r->name }}
@can('view', $u) {{ $u->name }} ({{ $u->id }}) @else {{ $u->name }} ({{ $u->id }}) @endcan @if($u->isAtcActive()) Yes @else Inactive @endif Approved
@endsection