@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'))
{{ $message }}
@elseif($message = Session::get('failure'))
{{ $message }}
@endif

All User

@canany(['userreports-list','userreports-create','userreports-edit','userreports-delete']) @endcanany @if(count($users)> 0) @foreach ($users as $key => $per) @can('userreports-list') @php $tickets = $userreports->userreportsdaily($per->id); $ticketmonthly = $userreports->userreportsmonthly($per->id); $userreportsyearly = $userreports->userreportsyearly($per->id); @endphp @elseif($per->id == Auth::user()->id) @php $tickets = $userreports->userreportsdaily($per->id); $ticketmonthly = $userreports->userreportsmonthly($per->id); $userreportsyearly = $userreports->userreportsyearly($per->id); @endphp @endcan @endforeach @endif
S no. Name Email Total Tickets Today This Month This Year Action
{{ ++$key }} {{$per->name}} {{$per->email}} {{$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}} {{$tickets['tickettoday']}} Rs. {{$tickets['totalcollection']}} Rs. {{$ticketmonthly['totalcollection']}} Rs. {{$userreportsyearly['totalcollection']}} View Details Print Today