@extends('layouts.app') @section('title', 'NDRT Surge') @section('content')
{{-- show notifications here --}} @if(Auth::user()->isAdmin() || Auth::user()->isOperationsManager()) @if(Auth::user()->unreadNotifications->count() > 0) @endif @endif {{-- if there are pending deployments, show a notification --}} @php $pendingDeployments = \App\Models\Deployment::where('status', 'pending')->count(); @endphp @if((Auth::user()->isAdmin() || Auth::user()->isOperationsManager()) && $pendingDeployments > 0) @endif @if(session('success'))
{{ session('success') }}
@endif
@forelse($officers as $officer) @empty @endforelse
Photo Full Name ID Number Gender Age Location Phone Deployments(Completed) Available Actions
@if($officer->photo_path) {{ $officer->full_name }} @else
{{ substr($officer->first_name, 0, 1) }}{{ substr($officer->surname, 0, 1) }}
@endif
{{ $officer->full_name }} {{ $officer->id_number }} {{ $officer->gender }} {{ $officer->age }} {{ $officer->location_type }} @if($officer->branch)
{{ $officer->branch->name }} @endif
{{ $officer->phone_1 }} {{ $officer->deployment_count }} @if($officer->available_for_deployment) Yes @else No @endif
@csrf @method('DELETE')
No NDRT Surge found.
{{ $officers->links() }}
@endsection