@extends('layouts.usermain') @section('main-container')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
W.H.S – Measurement Book Lists
{{-- Check if data exists --}} @if($records->isEmpty())
No data available. Please complete the quantity calculations first to proceed.
@else
@foreach($records as $index => $item) {{-- Correct serial number with pagination --}} {{-- Baseline Data (Null Safe) --}} {{-- Measurement Book Action --}} {{-- Other Actions --}} @endforeach
# Block Application Code Respondent Name Mobile Number Measurement Book Actions
{{ $records->firstItem() + $index }}{{ $item->baseline?->blocks?->name ?? 'N/A' }} {{ $item->baseline?->application_code ?? 'N/A' }} {{ $item->baseline?->name_of_respondent ?? 'N/A' }} {{ $item->baseline?->mobile_number ?? 'N/A' }} @if($item->measurementBook) View Measurement @else Add Measurement @endif Edit
{{-- Pagination --}}
{{ $records->links() }}
@endif
@endsection