Approve List Approve List
@if (Auth::check() && Auth::user()->hasRole('CFO')) @endif {{-- --}} @foreach ($approvedItems as $pro ) @if (Auth::check() && Auth::user()->hasRole('CFO')) @endif {{-- --}} @endforeach
Sr.No Application.No Applicant Name Service ID DateDocument Upload AmountRemarkStatus
{{ $loop->iteration }} {{ $pro->application_no }} {{ $user->where('id', $pro->user_id)->first()?->name }} {{ \Illuminate\Support\Str::limit($serviceName->where('service_id', $pro->service_id)->first()?->service_name, 30) }} {{ isset($pro->created_at) ? date('d-m-Y h:i A', strtotime($pro->created_at)) : 'N/A' }} {{-- @php $status = $pro->status()->where('service_id', $pro->service_id)->first(); $documentPath = $status ? $status->clerkdocument : null; @endphp --}} {{-- @if ($status && $documentPath) @if (Storage::disk('public')->exists($documentPath)) View Document @else

Document not Uploaded

@endif @else

Document not Uploaded

@endif @if ($status && $status->deputy_costatus == 1) @endif --}}
@php $Amountdetails = $statusdata->where('service_id', $pro->service_id)->where('table_id', $pro->id)->value('amount'); @endphp @if($Amountdetails) {{ $Amountdetails }} @else -- @endif @if (Auth::check() && Auth::user()->hasRole('CFO')) @php $remark = $statusdata->where('service_id', $pro->service_id)->where('table_id', $pro->id)->value('clerk_remark'); @endphp @if($remark) {{ $remark }} @else - @endif @elseif(Auth::check() && Auth::user()->hasRole('DYCFO')) @php $remark = $statusdata->where('service_id', $pro->service_id)->where('table_id', $pro->id)->value('hod_remark'); @endphp @if($remark) {{ $remark }} @else - @endif @elseif(Auth::check() && Auth::user()->hasRole('SFO')) @php $remark = $statusdata->where('service_id', $pro->service_id)->where('table_id', $pro->id)->value('deputy_coremark'); @endphp @if($remark) {{ $remark }} @else - @endif @endif @if ($pro->status()->where('service_id', $pro->service_id)->first()?->id) View @else - @endif