@extends('layouts.adminmaster') @section('styles') @endsection @php $sitesetting = App\Models\sitesetting::first(); use App\Models\vehiclereports; $vehicleReports = new VehicleReports(); @endphp @section('admincontent') @if ($message = Session::get('success'))
{{ $message }}
@elseif($message = Session::get('failure'))
{{ $message }}
@endif

All Vehicle

@if(count($vehicles)> 0) @foreach ($vehicles as $key => $per) @php $tickets = $vehicleReports->vehiclereportsdaily($per->id); $ticketmonthly = $vehicleReports->vehiclereportsmonthly($per->id); $vehiclereportsyearly = $vehicleReports->vehiclereportsyearly($per->id); @endphp @endforeach @endif
S no. Vehicle Type Vehicle No Prali Name Total Tickets Today This Month This Year Action
{{ ++$key }} {{ $per->vehicleno}} {{$tickets['tickettoday']}} Rs. {{$tickets['totalcollection']}} Rs. {{$ticketmonthly['totalcollection']}} Rs. {{$vehiclereportsyearly['totalcollection']}} View Details
@endsection @section('scripts') @endsection