@extends('layouts.usermain') @section('main-container')
| Unit | District | Block | Village | WHS Code | WHS Type | Beneficiary Name | Category | Survey Date | Size (L x W x D in m) | Status | Edit | Base L-View | Pre-Level | Map | Surveyed By |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $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->date_of_survey ? \Carbon\Carbon::parse($report->date_of_survey)->format('d/m/y') : '-' }} | {{ $report->waterHarvestingStructuresPlanning->pluck('length')->map(fn($l) => (int) $l)->filter()->implode(', ') ?? '-' }} × {{ $report->waterHarvestingStructuresPlanning->pluck('width')->map(fn($w) => (int) $w)->filter()->implode(', ') ?? '-' }}× {{ $report->waterHarvestingStructuresPlanning->pluck('depth_or_height')->map(fn($w) => (int) $w)->filter()->implode(', ') ?? '-' }} | {{ $report->status ?? '-' }} | @if($report->status === 'Pending' || $report->status === 'Needs Correction') Edit @else @endif | View | @if ($report->preWorkLevels && $report->preWorkLevels->isNotEmpty()) View @else @if(($report->status === 'Pending' || $report->status === 'Needs Correction')) Pending @else Add @endif @endif | @php $structure = $report->waterHarvestingStructuresPlanning->first(); @endphp @if ($structure) View @endif | {{ $report->user->name }} |