@extends('layouts.admin') @section('title', 'Unit Inspector Applications') @section('page-title', 'Dashboard') @section('content')

Applications for Unit Inspector

{{-- Applications Table --}} @if ($applications->count())
@php // calculate start number for pagination $start = ($applications->currentPage() - 1) * $applications->perPage() + 1; @endphp @foreach ($applications as $key => $app) @endforeach
# Application Number Applicant Name Society Name Status Date Action
{{ $start + $key }} {{ $app->application_number ?? 'N/A' }} {{ $app->name ?? ($app->childs_name ?? 'N/A') }} {{ $app->society->name ?? 'N/A' }} {{ $app->ApplicationStatus->status_name ?? '-' }} {{ $app->created_at->format('d-m-Y') }} View
{{-- Pagination --}}
{{ $applications->appends(['search' => request('search'), 'society_id' => request('society_id')])->links() }}
@else

No applications found for this Unit Inspector.

@endif
@endsection