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

Route Details

@can('routereports-list')
Title Description
Name {{$route->name}}
Start Point {{$route->start_point}}
End Point {{$route->end_point}}
Distance {{$route->distance}}
@php $tickets = $routeReports->routereportsdaily($route->id); $ticketmonthly = $routeReports->routereportsmonthly($route->id); $routereportsyearly = $routeReports->routereportsyearly($route->id); @endphp
Title Description
Total ticket today {{$tickets['tickettoday']}}
Total collection today Rs. {{$tickets['totalcollection']}}
Total ticket this month {{$ticketmonthly['ticket']}}
Total collection this month Rs. {{$ticketmonthly['totalcollection']}}
Total ticket this year {{$routereportsyearly['ticket']}}
Total collection this year Rs. {{$routereportsyearly['totalcollection']}}
@foreach($months as $key => $mnth) @php $monthlycollectionroute = $routeReports->routereportsmonthlybyname($route->id,$key); @endphp @endforeach
Months Total Collection
{{$mnth}} Rs. {{$monthlycollectionroute['totalcollection']}}
@if(count($savedbills)> 0) @foreach ($savedbills as $key => $per)
S no. Bill Type Vehicle Type Vehicle No Amount route Date Time
{{ ++$key }} {{$per->description}} Rs {{ $per->amount}} {{ $per->users->name}}