@extends('layouts.usermain') @section('main-container')
| # | Unit | District | Block | Village | WHS Code | WHS - Type | Beneficiary Name | Category | Size (L × W × D) | Pre-Level | Map | Survey Date | Status | Surveyed By | Edit | Delete |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{++$i}} | {{ $report->unit->name ?? '-' }} | {{ $report->district->name ?? '-' }} | {{ $report->block->name ?? '-' }} | {{ $report->village->name ?? '-' }} | {{ $report->application_code ?? '-' }} | {{ $report->projectType->name ?? '-' }} | {{ $report->name_of_respondent ?? '-' }} | {{ $report->households->first()->category ?? '-' }} | {{ $report->waterHarvestingStructuresPlanning->pluck('length')->map(fn($v) => (int) $v)->filter()->implode(', ') ?? '-' }} × {{ $report->waterHarvestingStructuresPlanning->pluck('width')->map(fn($v) => (int) $v)->filter()->implode(', ') ?? '-' }} × {{ $report->waterHarvestingStructuresPlanning->pluck('depth_or_height')->map(fn($v) => (int) $v)->filter()->implode(', ') ?? '-' }} | @if($report->preWorkLevels && $report->preWorkLevels->isNotEmpty()) View @elseif(in_array($report->status, ['Pending','Needs Correction'])) Pending @else Add @endif | @php $structure = $report->waterHarvestingStructuresPlanning->first(); @endphp @if($structure) View @endif | {{ $report->date_of_survey ? \Carbon\Carbon::parse($report->date_of_survey)->format('d/m/Y') : '-' }} | {{ $report->status ?? '-' }} | {{ $report->user->name ?? '-' }} | Edit | |
| No reports found. | ||||||||||||||||