@extends('layouts.default', ['appTopMenu' => true]) @php $state=''; $state1=''; use App\Http\Controllers\Da\DaController; @endphp @section('title', 'Dashboard') @push('head') @endpush @section('content') @php $user_type_id=''; @endphp @if(!empty($lsa1)) @foreach($lsa1 as $item11) @php $district1=0; $tehsil1=0; $village1=0; $state1=$item11->state; if($item11->subdistrict!='') $district1=$item11->district; if($item11->village!='') $tehsil1=$item11->subdistrict; $village1=0; $user_type_id=$item11->user_type_id; @endphp @endforeach @endif @if(!empty($lsa)) @php $total=0; $totalp=0; $totaldsc=0; $totaldsclsc=0; $totalr=0; $totaldf=0; $totalpbfadv=0; $totalpbfsc=0; $totaldbfsc=0; $totaldef=0; $cntr=0; $totalstatescount=0; $prev_state=''; @endphp @foreach($lsa as $item) @php if($item->state_name_english!=$prev_state) $totalstatescount++; $prev_state = $item->state_name_english; // if($loop->index==0){ //if(!empty($item->place)){ //$exp_data=explode("|",$item->place); //if(!empty($exp_data[4])) //$state1=$exp_data[4]; //if(!empty($exp_data[5])) //$district1=$exp_data[5]; //if(!empty($exp_data[6])) //$tehsil1=$exp_data[6]; //if(!empty($exp_data[7])) //$village1=$exp_data[7]; //} //} if($loop->index==(count($lsa)-1)){ $total=$item->total_cases; $totalp=$item->pending; $totaldsc=$item->dispose_cases_sc; $totaldsclsc=$item->dispose_cases_sclsc; $totalr=$item->reject_cases; $totaldf=$item->def; $totalpbfadv=$item->pbfadv; $totalpbfsc=$item->pbfsc; $totaldbfsc=$item->dbfsc; $totaldef=$item->defect_cases; } @endphp @endforeach @php if( $totalstatescount>2) { $state1=''; $district1=''; $tehsil1=''; $village1=''; } @endphp
Total

{{$total}}

Pending (SCLSC)

{{$totalp}}

Defective (SCLSC)

{{$totaldf}}

Panel Advocates

{{$totalpbfadv}}

Disposed off (SCLSC)

{{$totaldsclsc}}

Rejected (SCLSC)

{{$totalr}}

Closed (30 days)

{{$totaldef}}

Pending (SC)

{{$totalpbfsc}}

Disposed off (SC)

{{$totaldsc}}

@foreach($lsa as $item) @php $state=''; $district=''; $tehsil=''; $village=''; if(!empty($item->place)){ $exp_data=explode("|",$item->place); if(!empty($exp_data[4])) $state=$exp_data[4]; if(!empty($exp_data[5])) $district=$exp_data[5]; if(!empty($exp_data[6])) $tehsil=$exp_data[6]; if(!empty($exp_data[7])) $village=$exp_data[7]; } @endphp
SNo. Place Total Pending Panel Adv. Supreme Court Disposed Off Rejected Closed (30 days)