@extends('layouts.app') @section('content')

Deployment Management

Track active and completed deployments

Create Deployment
@if(session('success')) @endif @forelse($deployments as $deployment)

{{ optional($deployment->ndrtOfficer)->name ?? (optional($deployment->ndrtOfficer)->first_name . ' ' . optional($deployment->ndrtOfficer)->surname) ?: 'NDRT Officer' }}

{{ $deployment->mission_description ? Str::limit($deployment->mission_description, 120) : 'No description' }}

@if (strtolower($deployment->status) === 'pending' && Auth::user()->isAdmin() || Auth::user()->isOperationsManager())
@csrf @method('PATCH')
@else {{ ucfirst($deployment->status ?? 'active') }} @endif
Period
{{ optional($deployment->start_date)->format('M d, Y') ?? '—' }} - {{ optional($deployment->end_date)->format('M d, Y') ?? '—' }}
Location
{{ $deployment->mission_location ?? '—' }}
Mentor
{{ $deployment->has_mentor ? ($deployment->mentor_name ?: 'Yes') : 'No' }}
Extended
{{ $deployment->is_extended ? 'Yes' : 'No' }}
@if(Auth::user()->isAdmin() || Auth::user()->isOperationsManager())
View Edit/Extend Mission @if(($deployment->status ?? 'active') !== 'completed') @endif
@csrf @method('DELETE')
@endif
@empty

No deployments yet

Create your first deployment record

Create Deployment
@endforelse
@endsection