@extends('layouts.app') @section('title', __('Modification')) @push('stylesheets') @include('partials.index-datatable-styles') @include('partials.filter-card-styles') @include('partials.collapsible-filter-styles') @endpush @section('contents')
@php $msmFiltersOpen = trim((string) request('search', '')) !== '' || (($statusFilter ?? 'all') !== 'all' && ($statusFilter ?? '') !== ''); @endphp
@forelse ($requests as $r) @php $statusLabel = match ($r->status) { 'meo_review' => __('Pending MEO review'), 'rd_review' => __('Forwarded to RD'), 'sdm_review' => __('Forwarded to verifier'), 'dg_review' => __('Forwarded to DG'), 'approved' => __('Approved'), 'rejected' => __('Rejected'), default => $r->status, }; $typeLabel = $r->request_type === 'replacement' ? __('Replacement') : __('Cancellation'); $detailUrl = route('scheme-plan-changes.show', $r); @endphp
#{{ $r->id }}
{{ $typeLabel }} {{ (int) ($r->lines_count ?? 0) > 0 ? (int) $r->lines_count : '—' }} {{ $statusLabel }} {{ $r->initiator?->name ?? '—' }} {{ $r->created_at?->format('d M Y H:i') }} @empty {{ __('No requests found.') }} @endforelse
@endsection @push('scripts') @include('partials.index-datatable-scripts') @include('partials.collapsible-filter-scripts') @endpush