@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

All Routes

@canany(['routereports-list','routereports-create','routereports-edit','routereports-delete']) @endcanany @if(count($routes)> 0) @foreach ($routes as $key => $per) @can('routereports-list') @php $tickets = $routereports->routereportsdaily($per->id); $ticketmonthly = $routereports->routereportsmonthly($per->id); $routereportsyearly = $routereports->routereportsyearly($per->id); @endphp @elseif($per->id == Auth::user()->id) @php $tickets = $routereports->routereportsdaily($per->id); $ticketmonthly = $routereports->routereportsmonthly($per->id); $routereportsyearly = $routereports->routereportsyearly($per->id); @endphp @endcan @endforeach @endif
S no. Name Start Point End Point Distance Today Ticket Today This Month This Year Action
{{ ++$key }} {{$per->name}} {{$per->start_point}} {{$per->end_point}} {{$per->distance}} {{$tickets['tickettoday']}} Rs. {{$tickets['totalcollection']}} Rs. {{$ticketmonthly['totalcollection']}} Rs. {{$routereportsyearly['totalcollection']}} @can('routereports-detail') View Details @endcan @can('routereports-print') Print Today @endcan
{{ ++$key }} {{$per->name}} {{$per->email}} {{$tickets['tickettoday']}} Rs. {{$tickets['totalcollection']}} Rs. {{$ticketmonthly['totalcollection']}} Rs. {{$routereportsyearly['totalcollection']}} View Details Print Today