My Application My Application {{-- Test --}}

My Application

{{-- --}} @forelse($datas as $data) @php $currentStatus = $statusdata ->where('service_id', $data->service_id) ->where('table_id', $data->id) ->first(); $amountdetails = $currentStatus->amount; $paymentStatus = $currentStatus->payment_status; $clerkdocument = $currentStatus->clerkdocument; @endphp {{-- --}} {{-- --}} @empty @endforelse
Sr No Application No Service Name Date Current Status View DocumentPayment Status
{{ $loop->iteration }} {{ isset($data->application_no) ? $data->application_no : 'N/A' }} {{ $serviceName->where('service_id', $data->service_id)->first()?->service_name }} {{ isset($data->created_at) ? date('d-m-Y h:i A', strtotime($data->created_at)) : 'N/A' }} @if ($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('deputy_costatus') == 2) Rejected by Deputy @elseif($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('deputy_costatus') == 1) Final Approved @elseif($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('hod_status') == 2) Rejected by AEE @elseif($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('hod_status') == 1) Approved by AEE @elseif($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('clerk_status') == 2) Rejected by AE @elseif($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('clerk_status') == 1) Approved by AE @elseif($statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('clerk_status') == 0) Pending @endif @if ($data->status()->where('service_id', $data->service_id)->first()?->id) View @else - @endif @if ($currentStatus->chalan_payment_document) View Chalan Payment Document @endif @if ($currentStatus->noc_document) View Noc Document @endif @if ($currentStatus && $currentStatus->deputy_co_forward_status == 1) @endif @if ($paymentStatus == 0) @if ($amountdetails && $statusdata->where('service_id', $data->service_id)->where('table_id', $data->id)->value('ee_status') == 1) Pay Now @else Pending @endif @elseif($paymentStatus == 1) Paid @elseif($paymentStatus == 2) Failed @else --- @endif
No Service Found