@extends('mgh_theme.app') @section('content')

Dashboard

Registered Car

{{--

Jan - Apr 2022

--}}

{{$vehicles_count}}

Regular Parking Today

{{--

Jan - Apr 2022

--}}

{{$regular_logscount}}

Paid Parking Today

{{--

Jan - Apr 2022

--}}

{{$vip_logscount}}

Guest Parking

{{--

Jan - Apr 2017

--}}

{{$logsguestcount}}

On Queue

{{--

Jan - Apr 2017

--}}

{{collect($notentered)->where('paid',0)->where('violation',0)->count()}}

Paid Token not entered

{{--

Jan - Apr 2017

--}}

{{collect($notentered)->count() - collect($notentered)->where('paid',0)->where('violation',0)->count()}}

Stacked Bar Chart

{{-- @dd($logs->groupBy('car_group_id'))--}} @foreach($logs->groupBy('car_group_id') as $key=>$data)

{{count($data)}}

@php($priority = $car_group[$key]['priority'])

Total {{$default_data['priority'][$priority]}} : {{$car_group[$key]['name']}} Parking

@endforeach
Live Parking Number
@php($queueueuu = collect($notentered)->where('paid',0)->where('violation',0)->count())

{{$exitingcars+$queueueuu}} / {{$default_data['car_quota']}}

Remaining Park Slot: {{$default_data['car_quota']-($exitingcars+$queueueuu)}}

On Queue: {{$queueueuu}}

Recent Notifications

Recent Parking List

Parking List

@foreach($logs as $log) exit_time) && \Carbon\Carbon::parse($log->exit_time_scheduled) < now() ) style="border-left: 10px solid #dc3545;" @endif> @php($priority = $car_group[$log->car_group_id]['priority']) @endforeach
SL Status Type Registration No. Car Owner Car Owner number Entry Time Scheduled Exit Time Exit Time Remaining Designation Valid Till
@if($log->violation == 0 && $log->paid == 0){{$log->slno}}@elsePAID@endif @if(isset($log->exit_time))Complete@elseOngoing @endif{{$default_data['priority'][$priority]}} {{$car_group[$log->car_group_id]['name']}} {{$log->number_plate}} {{$log->car_owner}} {{$log->car_owner_number}} {{\Carbon\Carbon::parse($log->entry_time)->format('d F,Y G:i')}} @if($log->violation == 0 && $log->paid == 0){{\Carbon\Carbon::parse($log->exit_time_scheduled)->format('d F,Y G:i')}}@endif {{isset($log->exit_time) ? \Carbon\Carbon::parse($log->exit_time)->format('d F,Y G:i') : ''}} @if($log->violation == 0 && $log->paid == 0) @if(!isset($log->exit_time)){{((\Carbon\Carbon::parse($log->exit_time_scheduled) < now()) ? '-':'')}}{{\Carbon\Carbon::parse($log->exit_time_scheduled)->diffInMinutes(now())}} Minutes @endif @endif {{$log->car_owner_designation}} {{\Carbon\Carbon::parse($log->valid_till)->format('d F,Y G:i')}}
@endsection @section('script') @endsection