@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'))| 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}} | @php $tickets = $routereports->routereportsdaily($per->id); $ticketmonthly = $routereports->routereportsmonthly($per->id); $routereportsyearly = $routereports->routereportsyearly($per->id); @endphp{{$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}} | @php $tickets = $routereports->routereportsdaily($per->id); $ticketmonthly = $routereports->routereportsmonthly($per->id); $routereportsyearly = $routereports->routereportsyearly($per->id); @endphp{{$tickets['tickettoday']}} | Rs. {{$tickets['totalcollection']}} | Rs. {{$ticketmonthly['totalcollection']}} | Rs. {{$routereportsyearly['totalcollection']}} | View Details Print Today |