@extends('layouts.page') @section('title') PG Feedback Summary {{ $rows->count() }} @endsection @section('content')
Loading...
Loading, please wait...
@php $zonesStates = App\Models\Location::where('level', 2) ->get() ->groupBy('zone') ->map->pluck('name', 'id') ->map->all() ->toArray(); $zones = array_map(fn($key) => ucfirst($key), array_combine(array_keys($zonesStates), array_keys($zonesStates))); $districts = App\Models\Location::where('level', 3) ->get() ->groupBy('parent_id') ->map(function($items) { return $items->pluck('name', 'id')->all(); }) ->toArray(); $selectedZone = request('zone'); $selectedState = request('state'); $selectedDistrict = request('district'); @endphp
{{ Form::label('zone', 'Select Zone', ['class' => 'form-label']) }} {{ Form::select('zone', ['' => 'Select Zone'] + $zones, $selectedZone, ['class' => 'form-select', 'id' => 'zone', 'onchange' => 'updateStates()']) }}
{{ Form::label('state', 'Select State', ['class' => 'form-label']) }} {{ Form::select('state', ['' => 'Select State'], $selectedState, ['class' => 'form-select', 'id' => 'state', 'onchange' => 'updateDistricts()']) }}
{{ Form::label('district', 'Select District', ['class' => 'form-label']) }} {{ Form::select('district', ['' => 'Select District'], $selectedDistrict, ['class' => 'form-select', 'id' => 'district']) }}
Export
Back to PG Feedback

Warning: Undefined variable $data in /var/www/html/pruthvi/resources/views/pg_feedback/summary.blade.php on line 82

Warning: foreach() argument must be of type array|object, null given in /var/www/html/pruthvi/resources/views/pg_feedback/summary.blade.php on line 82
Total States: {{ $uniqueStatesCount }} | Total Districts: {{ $totalDistricts }} Total Mandals: {{ $totalMandals }} | Total Villages: {{ $totalVillages }}
@forelse ($data as $row)
Fatal error: Uncaught Error: Class "App\Models\Location" not found in /var/www/html/pruthvi/resources/views/pg_feedback/summary.blade.php:120 Stack trace: #0 {main} thrown in /var/www/html/pruthvi/resources/views/pg_feedback/summary.blade.php on line 120
State District Presence in No. of Mandal/Taluk/Circle Presence in No. of Villages Connected Yet to Reach Disconnected Spoken Language Any Other Language