@extends('layouts.app') @section('title', 'Deployment Requests') @section('page-title', 'Deployment Requests') @section('content')
Clear @if(Auth::user()->hasRole('communicator')) + Self-Deploy Request @elseif(Auth::user()->hasRole('producer')) + Request Communicator @endif
@forelse($requests as $r) @empty @endforelse
Request Communicator Station / Date Requested By Status
{{ $r->type === 'self' ? 'Self-Request' : 'Producer' }}
#{{ $r->id }}
{{ $r->communicator?->name ?? '—' }}
{{ $r->station?->name ?? '—' }}
{{ $r->requested_date?->format('d M Y') }}
{{ $r->requestedBy->name }} {{ ucfirst($r->status) }} {{ $r->status === 'pending' && Auth::user()->hasRole(['admin','supervisor']) ? 'Review' : 'View' }}
No requests found
@if($requests->hasPages())
{{ $requests->links() }}
@endif
@endsection