@extends('layouts.mmrda') @section('content') @include('mmrda.common.rnr-banner') @if (session('success')) {{ session('success') }} @endif @if (session('error')) {{ session('error') }} @endif @php $isAapleUser = Auth::guard('citizen')->user()->aaple_user ?? null; @endphp @if (!$isAapleUser) @include('mmrda.common.service-links-card') @endif Allotment Raise Request View Previous Requests Please provide details for allotment letter @if ($errors->any()) {{ $errors->first() }} @endif @csrf Project Select Project @if (isset($projects) && count($projects)) @foreach ($projects as $project) {{ $project->name }} | {{ $project->site_location }} @endforeach @endif Allotment Number Description @if (Auth::guard('citizen')->user()->aaple_user) Proceed To Payment @else Submit Request @endif Previous Requests # Application ID Project Allotment No. Description Submitted On Status Action @forelse ($allotmentRequests as $index => $allotmentRequest) {{ $index + 1 }} {{ $allotmentRequest->application_id }} {{ $allotmentRequest->project->name }} | {{ $project->site_location }} {{ $allotmentRequest->allotment_no }} {{ $allotmentRequest->description }} {{ $allotmentRequest->created_at->format('d M Y') }} @if ($allotmentRequest->status == 3) Under Scrutiny @elseif ($allotmentRequest->status == 4) Approved @elseif ($allotmentRequest->status == 5) Rejected @elseif (Auth::guard('citizen')->user()->aaple_user && $allotmentRequest->status < 3) Payment Pending @else Pending @endif @if ($allotmentRequest->file) Download File @elseif (Auth::guard('citizen')->user()->aaple_user && $allotmentRequest->status < 3) @csrf Complete Payment @else - @endif @if ($allotmentRequest->remark) Remark: {{ $allotmentRequest->remark }} @endif @empty No requests found. @endforelse {{-- Search Form --}} @error('name') {{ $message }} @enderror @error('allotment_number') {{ $message }} @enderror Search Reset {{-- Show table only when search is performed --}} @if (request()->filled('name') || request()->filled('allotment_number')) Sl. No. Name Allotment Number File @forelse ($allotment as $index => $item) {{ $allotment->firstItem() + $index }} {{ $item->name }} {{ $item->allotment_number }} Download @empty No records found. @endforelse @endif @endsection @section('script') @endsection