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 ($currentStatus->deputy_costatus == 2) Rejected by AP @elseif($currentStatus->clerk_final_status == 1) Final Approved @elseif($currentStatus->hod_status == 2) Rejected by DP @elseif($currentStatus->hod_status == 1) Approved by DP @elseif($currentStatus->clerk_status == 2) Rejected by DM @elseif($currentStatus->clerk_status == 1) Approved by DM @elseif($currentStatus->clerk_status == 0) Pending @endif @if ($currentStatus->chalan_payment_document) View Chalan Payment Document @endif @if ($currentStatus->certificate_document) View Certificate Document @endif @if ($currentStatus && $currentStatus->clerk_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