@extends('layouts.page') @section('title') Locations Report @endsection @section('navs') @if(Auth::user()->hasAnyRole(['admin'])) {{ Form::open(['url' => route('location.map'), 'method' => 'get']) }}
{{ Form::select('parent_id', \App\Models\Location::parentOptions(), null, ['class' => 'form-control form-control-sm me-2 d-auto w-25']) }} {{ Form::submit('View Map', ['class' => 'btn btn-outline-primary btn-sm me-2']) }} Index Import Locations Import Population Add New
{{Form::close()}} @endif @endsection @section('content')

{{ count($report) }}

States/UT

{{ array_sum(array_column($report, 'Districts')) }}

Districts

{{ array_sum(array_column($report, 'Mandals')) }}

Mandals/City

{{ array_sum(array_column($report, 'Villages')) }}

Villages
@foreach($report as $k => $v) @endforeach
S.No. State Districts Mandals Villages Population No Map
{{ $i++ }} {{ $k }} {{ $v['Districts'] }} {{ $v['Mandals'] }} {{ $v['Villages'] }} {{ $v['Population'] }} {{ $v['No Map'] }}
@endsection