@include('layouts.pdfHeader') Bill Approval Report

Water Harvesting Structure

Details for Bill Approval - Farm Pond
Name of PIA: {{ $bill->baseline->project->pia->name ?? 'N/A' }} Village: {{ $bill->baseline->village->name ?? 'N/A' }} Panchayat: {{ $bill->baseline->panchayat->name ?? 'N/A' }}
Block: {{ $bill->baseline->block->name ?? 'N/A' }} District: {{ $bill->baseline->district->name ?? 'N/A' }} Unit: {{ $bill->baseline->unit->name ?? 'N/A' }}
State: {{ $bill->baseline->state->name ?? 'N/A' }} Application Code: {{ $bill->baseline->application_code ?? 'N/A' }} Financial Year: {{ $bill->baseline->financial_year->name ?? 'N/A' }}
Beneficiary Name: {{ $bill->baseline->name_of_respondent ?? 'N/A' }} Plot No: {{ $bill->baseline->lands->first()->plot_khata ?? 'N/A' }}
@php $rowspan = $readings->count(); $total_estimated = $readings->sum('estimated_amount'); @endphp @php $gst_amount = $total_estimated * 0.18; $grand_total_calc = $total_estimated + $gst_amount; @endphp @forelse ($readings as $index => $item) @if ($loop->first) @endif @empty @endforelse {{-- Totals --}}
Sl.No. Activity Name Estimated Actual Bill Date GPS Reading Present Status Remarks
Qty Rate Amount Unit Qty Rate Amount
{{ $item->serial_no ?? $index + 1 }} {{ $item->activity_name ?? 'N/A' }} {{ $item->estimated_quantity ?? 0 }} {{ number_format($item->estimated_rate ?? 0, 2) }} {{ number_format($item->estimated_amount ?? 0, 2) }} {{ $item->unit ?? '' }} {{ $item->actual_quantity ?? 0 }} {{ number_format($item->actual_rate ?? 0, 2) }} {{ number_format($item->actual_amount ?? 0, 2) }}{{ $bill->bill_date ?? 'N/A' }} {{ $bill->gps_reading ?? 'N/A' }} {{ ucfirst($bill->present_status ?? 'N/A') }} {{ ucfirst($bill->remarks ?? 'N/A') }}
No records found
Total {{ number_format($total_estimated, 2) }} {{ number_format($bill->total ?? 0, 2) }}
GST (18%) {{ number_format($gst_amount, 2) }} {{ number_format($bill->gst ?? 0, 2) }}
Grand Total {{ number_format($grand_total_calc, 2) }} {{ number_format($bill->grand_total ?? 0, 2) }}
{{ ucfirst($bill->verification_status) }} By:- {{ ucfirst($bill->present_status) }}By:-
@php $photos = [ 'Pre Earthwork Photograph' => $bill->pre_work_photograph, 'Earthwork Photograph' => $bill->earthwork_photograph, 'Inlet Photograph' => $bill->inlet_photograph, 'Masonry[Inner Side] Outlet Photograph' => $bill->masonry_outlet_photograph, 'Masonry Outlet [Outer Side] Photograph' => $bill->masonry_outlet_outer_photograph, 'Display Board Photograph' => $bill->display_board_photograph, ]; $photos = array_filter($photos); // Remove empty paths $chunks = array_chunk($photos, 2, true); // Split into rows of 2 @endphp @if(count($photos) > 0)

Photographs

@foreach ($chunks as $row) @foreach ($row as $title => $path) @endforeach {{-- Fill empty space if odd number of images --}} @if(count($row) < 2) @endif @endforeach
{{ $title }}
@if ($path) {{ $title }} @else

No image

@endif
@endif