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 Name Service Name Date Current Status View DocumentPayment Status
{{ $loop->iteration }} {{ isset($data->application_no) ? $data->application_no : 'N/A' }} {{ isset($data->allotte_name) ? $data->allotte_name : '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' }} @php $statusItem = $statusdata ->where('service_id', $data->service_id) ->where('table_id', $data->id) ->first(); $status = null; $label = null; $remark = null; $isRejected = false; if ($statusItem) { if ($statusItem->deputy_costatus == 2) { $status = 'Rejected by SFO'; $label = 'bg-danger'; $remark = $statusItem->deputy_coremark; $isRejected = true; } elseif ($statusItem->hod_status == 2) { $status = 'Rejected by DYCFO'; $label = 'bg-danger'; $remark = $statusItem->hod_remark; $isRejected = true; } elseif ($statusItem->clerk_status == 2) { $status = 'Rejected by CFO'; $label = 'bg-danger'; $remark = $statusItem->clerk_remark; $isRejected = true; } elseif ($statusItem->deputy_costatus == 1) { $status = 'Approved SFO'; $label = 'bg-success'; } elseif ($statusItem->hod_status == 1) { $status = 'Approved by DYCFO'; $label = 'bg-info'; } elseif ($statusItem->clerk_status == 1) { $status = 'Approved by CFO'; $label = 'bg-warning'; } elseif ($statusItem->clerk_status === 0) { $status = 'Pending'; $label = 'bg-warning'; } } @endphp @if ($status) {{ $status }} @if ($isRejected && $remark) @endif @else No Status @endif @if ($currentStatus->chalan_payment_document) View Chalan Payment Document @endif @if ($data->status == 4) View Noc Document @endif @if ($currentStatus && $currentStatus->deputy_co_forward_status == 1) @endif
No Service Found