@extends('app-new') @section('content')
Requisitions
Demand register
Reset
@forelse($requisitions as $req) @empty @endforelse
Req No Project Requested By Required Date Status Created Actions
{{ $req->requisition_no }} {{ $req->project->project_name ?? '-' }} {{ $req->requester->name ?? '-' }} {{ optional($req->required_date)->format('Y-m-d') }} @php $badge = match($req->status){ 'approved' => 'success', 'rejected' => 'danger', 'pending' => 'warning', 'fulfilled' => 'info', default => 'secondary' }; @endphp {{ ucfirst($req->status) }} {{ $req->created_at?->format('Y-m-d') }} View Edit
@csrf @method('DELETE')
@if(in_array($req->status, ['draft','rejected'], true))
@csrf
@endif
No records found
{{ $requisitions->links() }}
@endsection @push('head-script') @endpush