@extends('layouts.usermain') @section('main-container')
Quantity Calculation Report -WHS [Farm Pond]
@php $preLevel = $record->baseline?->preWorkLevels?->first(); $postLevel = $record->baseline?->postLevel; @endphp
{{ $villageName }}
{{ $panchayatName ?? '-' }}
{{ $blockName ?? '-' }}
{{ $districtName ?? '-' }}
{{ $record->baseline->name_of_respondent ?? '-' }}
{{ $record->land->plot_khata ?? '-' }}
{{ $preLevel?->measurement_date ? \Carbon\Carbon::parse($preLevel->measurement_date)->format('d/m/Y') : '-' }}
{{ $postLevel?->measurement_date ? \Carbon\Carbon::parse($postLevel->measurement_date)->format('d/m/Y') : '-' }}
{{ $record->waterHarvestingStructuresPlanning->latitude ?? '-' }}
{{ $record->waterHarvestingStructuresPlanning->longitude ?? '-' }}
{{ (int) ($record->waterHarvestingStructuresPlanning->length ?? 0) }}m X {{ (int) ($record->waterHarvestingStructuresPlanning->width ?? 0) }}m X {{ (int) ($record->waterHarvestingStructuresPlanning->depth_or_height ?? 0) }}m
Quantity Estimation
@php if (!function_exists('displayValue')) { function displayValue($value) { return is_numeric($value) ? number_format((float)$value, 3) : '-'; } } $average_estimates = is_string($record->average_estimates) ? json_decode($record->average_estimates, true) : $record->average_estimates; @endphp @foreach (['1st', '2nd', '3rd', '4th'] as $i => $layer) @php $layerKey = $layer . ' Layer'; $recordLayer = $average_estimates[$layerKey] ?? null; $bottomLevel = $post_averages[$i]->average_rl ?? '-'; @endphp @endforeach
AVG. TOP LEVEL AVG. BOTTOM LEVEL AVG. DEPTH (m) AVG. LENGTH (m) AVG. WIDTH (m) AVG. AREA (Sqm) QTY (cum)
{{ $layerKey }}
{{ displayValue($recordLayer['avg_top_level'] ?? null) }} {{ displayValue($recordLayer['avg_bottom_level'] ?? null) }} {{ displayValue($recordLayer['avg_depth'] ?? null) }} {{ displayValue($recordLayer['avg_length'] ?? null) }} {{ displayValue($recordLayer['avg_width'] ?? null) }} {{ displayValue($recordLayer['avg_area'] ?? null) }} {{ displayValue($recordLayer['qty'] ?? null) }}
Total Depth {{ displayValue($record->total_depth ?? null) }} Total Quantity {{ displayValue($record->total_quantity ?? null) }}
Estimated Quantity {{ displayValue($record->estimated_quantity ?? null) }}
Payable Quantity {{ displayValue($record->payable_quantity ?? null) }}
Remarks for length, width and area - {{ ($record->remarks_for_depth ?? null) }}
Remarks for volume of earth work - {{ ($record->remarks_for_length ?? null) }}
Remarks for volume of earth work - {{ ($record->remarks_for_volume ?? null) }}
Measurements for Bund and Quantity Calculation for Dressing Area
@foreach($bunds as $bund) @endforeach
Particulars Avg Length (m) Avg Bottom Width (m) Avg Height (m) Top Width (m) Slant Length (m) Frequency Dressing Area (sqm)
{{ $bund['particular'] ?? '-' }} {{ $bund['avg_length'] ?? '-' }} {{ $bund['avg_bottom_width'] ?? '-' }} {{ $bund['avg_height'] ?? '-' }} {{ $bund['top_width'] ?? '-' }} {{ $bund['slant_length'] ?? '-' }} {{ $bund['frequency'] ?? '-' }} {{ $bund['dressing_area'] ?? '-' }}
Avg/Total {{ $avg_length ?? '-' }} {{ $avg_width ?? '-' }} {{ $avg_height ?? '-' }} {{ $avg_slant_length ?? '-' }} {{ $avg_dressing_area ?? '-' }}
Estimated Dressing Area {{ $estimated_dressing_area ?? '-' }}
Payable Quantity {{ $payable_dressing_quantity ?? '-' }}
Remarks for bund and bund volume - {{ $remarks ?? '-' }}
OUTLET WORK
@foreach ($outletWork as $index => $item) @endforeach
Particulars Avg Length (m) Avg Width (m) Avg Depth (m) Qty
Hume Pipe's Length and Diameter {{ $record->hume_pipe_length }} - {{ $record->hume_pipe_avg_thickness }} -
Estimated qty {{ number_format($record->outlet_work_estimated_quantity, 3) }} - - -
Payable quantity {{ number_format($record->outlet_work_estimated_quantity, 3) }} - - -
Deduction of hume pipe {{ $record->deduction_of_hume_pipe }}
Masonry work after deduction of hume pipe volume {{ $record->masonry_work_after_deduction }}
Estimated qty {{ $record->estimated_qty_outlet }}
Payable quantity {{ $record->outlet_work_payable_quantity }}
Excavation for Silt Trap
Avg Length (m) Avg Width (m) Avg Depth (m) Qty (cum)
{{ $excavationForSiltTrap['avg_length'] ?? '-' }} {{ $excavationForSiltTrap['avg_width'] ?? '-' }} {{ $excavationForSiltTrap['avg_depth'] ?? '-' }} {{ $excavationForSiltTrap['qty'] ?? '-' }}
Estimated Silt Trap Qty {{ $record['silt_trap_est_qty'] ?? 'N/A' }}
Payable Quantity {{ $record['silt_trap_payable_qty'] ?? 'N/A' }}
Excavation for Inlet
Avg Length (m) Avg Width (m) Avg Depth (m) Qty (cum)
{{ $excavation_for_inlet_obj->avg_length ?? 'N/A' }} {{ $excavation_for_inlet_obj->avg_width ?? 'N/A' }} {{ $excavation_for_inlet_obj->avg_depth ?? 'N/A' }} {{ $excavation_for_inlet_obj->qty ?? 'N/A' }}
Estimated Qty {{ $record['inlet_est_qty'] ?? 'N/A' }}
Payable Quantity {{ $record['inlet_payable_qty'] ?? 'N/A' }}
Stone Pitching at Inlet
Avg Length (m) Avg Width (m) Qty (Sqm)
{{ $stone_pitching_at_inlet_obj->avg_length ?? 'N/A' }} {{ $stone_pitching_at_inlet_obj->avg_width ?? 'N/A' }} {{ $stone_pitching_at_inlet_obj->qty ?? 'N/A' }}
Estimated Qty {{ $record['stone_pitching_inlet_est_qty'] ?? 'N/A' }}
Payable Quantity {{ $record['stone_pitching_inlet_payable_qty'] ?? 'N/A' }}
Display Board Work (1m x 1m x 0.3m)
Particulars Avg Length (m) Avg Width (m) AVG Thickness/Depth (M) Qty
Size of Display Board {{ $data['display_board']['size']['length'] ?? '00' }} {{ $data['display_board']['size']['width'] ?? '00' }} {{ $data['display_board']['size']['depth'] ?? '00' }} N/A
Earth Work Excavation (Cum) {{ $data['display_board']['earthwork']['length'] ?? 'N/A' }} {{ $data['display_board']['earthwork']['width'] ?? 'N/A' }} {{ $data['display_board']['earthwork']['depth'] ?? 'N/A' }} {{ $data['display_board']['earthwork']['qty'] ?? 'N/A' }}
Estimated qty of excavation(cum) {{ $record->estimated_excavation_qty ?? 'N/A' }}
Payable quantity(cum) {{ $record->payable_excavation_qty ?? 'N/A' }}
Brick Work - Foundation (cum) {{ $data['display_board']['foundation']['length'] ?? 'N/A' }} {{ $data['display_board']['foundation']['width'] ?? 'N/A' }} {{ $data['display_board']['foundation']['depth'] ?? 'N/A' }} {{ $data['display_board']['foundation']['qty'] ?? 'N/A' }}
Brick Work - Superstructure (cum) {{ $data['display_board']['superstructure']['length'] ?? 'N/A' }} {{ $data['display_board']['superstructure']['width'] ?? 'N/A' }} {{ $data['display_board']['superstructure']['depth'] ?? 'N/A' }} {{ $data['display_board']['superstructure']['qty'] ?? 'N/A' }}
Total brick work(cum) {{ $record->total_brick_work }}
Estimated brick work qty(cum) {{ $record->estimated_brick_work_qty ?? 'N/A' }}
Payable quantity (cum) {{ $record->payable_brick_work_qty ?? 'N/A' }}
Plaster Work (Sqm) {{ $data['display_board']['plaster']['length'] ?? 'N/A' }} {{ $data['display_board']['plaster']['width'] ?? 'N/A' }} {{ $data['display_board']['plaster']['depth'] ?? 'N/A' }} {{ $data['display_board']['plaster']['qty'] ?? 'N/A' }}
Estimated plaster work qty (Sqm) {{ $record->estimated_plaster_work_qty ?? 'N/A' }}
Payable quantity (Sqm) {{ $record->payable_plaster_work_qty ?? 'N/A' }}
Wall Writing with Synthetic Paint (Sqm) {{ $data['display_board']['painting']['length'] ?? 'N/A' }} {{ $data['display_board']['painting']['width'] ?? 'N/A' }} {{ $data['display_board']['painting']['depth'] ?? 'N/A' }} {{ $data['display_board']['painting']['qty'] ?? 'N/A' }}
Estimated wall writing qty (Sqm) {{ $record->estimated_wall_writing_qty ?? '00' }}
Payable quantity (Sqm) {{ $record->payable_wall_writing_qty ?? '00' }}
Remarks for Inlet, Outlet and Display board work {{$record->remarks_inlet_outlet_display_board_work?? '-'}}
@endsection