@extends('layouts.usermain') @section('main-container')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
W.H.S – Post Level Entry
@if($query->isEmpty())
No data available. Please complete Post Level entry first.
@else
@foreach($query as $index => $item) {{-- These fields are from the related postLevel --}} {{-- Add Quantity column --}} {{-- View / Edit column --}} @endforeach
# Unit State District Block Application Code Name of Respondent Mobile Number Measurement Date Latitude Longitude BS HI Add Actions
{{ $index + 1 }} {{ $item->unit->name ?? 'N/A' }} {{ $item->state->name ?? 'N/A' }} {{ $item->district->name ?? 'N/A' }} {{ $item->blocks->name ?? 'N/A' }} {{ $item->application_code }} {{ $item->name_of_respondent }} {{ $item->mobile_number }} {{ \Carbon\Carbon::parse($item->date_of_survey)->format('d-m-Y') }}{{ $item->postLevel->lat ?? 'N/A' }} {{ $item->postLevel->long ?? 'N/A' }} {{ $item->postLevel->bs ?? 'N/A' }} {{ $item->postLevel->hi ?? 'N/A' }} @if (in_array($item->id, $existingQuantityIds)) @else Add Quantity @endif @if (in_array($item->id, $existingQuantityIds)) View Edit @else @endif
@endif
@endsection