@extends('layouts.default') @php use App\Http\Controllers\Da\DaController; @endphp @section('title', 'Dashboard') @push('head') @endpush @section('content') @if(!empty($lsa)) @php $state1=0; $district1=0; $tehsil1=0; $village1=0; $total=0; $totalp=0; $totald=0; $totalr=0; $totaldf=0; @endphp @foreach($lsa as $item) @php $total+=$item->count; $totalp+=$item->pending; $totald+=$item->dispose_cases; $totalr+=$item->reject_cases; $totaldf+=$item->def; if($loop->index==0){ if(!empty($item->state)) $state1=$item->state; if(!empty($item->district)) $district1=$item->district; if(!empty($item->subdistrict)) $tehsil1=$item->subdistrict; if(!empty($item->village)) $village1=$item->village; } @endphp @endforeach
Total Cases

{{$total}} Cases

Pending Cases

{{$totalp}} Cases

Dispose Cases

{{$totald}} Cases

Reject Cases

{{$totalr}} Cases

Defects in Cases

{{$totaldf}} Cases

 

@foreach($lsa as $item) @php $state=$item->state; $district=$item->district; $tehsil=$item->subdistrict; $village=$item->village; @endphp
SNo. Place Total Cases Pending Cases Dispose Cases Reject Cases Defective Cases
{{$loop->index+1}} {{($item->village_name_english!='' ? $item->village_name_english.',' : '')}} {{($item->subdistrict_name_english!='' ? $item->subdistrict_name_english.',' : '')}} {{($item->district_name_english!='' ? $item->district_name_english.',' : '')}} {{($item->state_name_english!='' ? $item->state_name_english : '')}} {{$item->count}} {{$item->pending}} {{$item->dispose_cases}} {{$item->reject_cases}} {{$item->def}}