@extends('layouts.adminmaster') @section('styles') @endsection @php $sitesetting = App\Models\sitesetting::first(); use App\Models\userreports; $userreports = new userreports(); @endphp @section('admincontent')
@if ($message = Session::get('success'))| S no. | Name | Total Tickets | Today | This Month | This Year | Action | |
|---|---|---|---|---|---|---|---|
| {{ ++$key }} | {{$per->name}} | {{$per->email}} | @php $tickets = $userreports->userreportsdaily($per->id); $ticketmonthly = $userreports->userreportsmonthly($per->id); $userreportsyearly = $userreports->userreportsyearly($per->id); @endphp{{$tickets['tickettoday']}} | Rs. {{$tickets['totalcollection']}} | Rs. {{$ticketmonthly['totalcollection']}} | Rs. {{$userreportsyearly['totalcollection']}} | @can('userreports-detail') View Details @endcan @can('userreports-print') Print Today @endcan |
| {{ ++$key }} | {{$per->name}} | {{$per->email}} | @php $tickets = $userreports->userreportsdaily($per->id); $ticketmonthly = $userreports->userreportsmonthly($per->id); $userreportsyearly = $userreports->userreportsyearly($per->id); @endphp{{$tickets['tickettoday']}} | Rs. {{$tickets['totalcollection']}} | Rs. {{$ticketmonthly['totalcollection']}} | Rs. {{$userreportsyearly['totalcollection']}} | View Details Print Today |