@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

User Details

@can('userreports-list')
Title Description
Name {{$users->name}}
Email {{$users->email}}
Role @if(!empty($users->getRoleNames())) @foreach($users->getRoleNames() as $v) @endforeach @endif
@php $tickets = $userReports->userreportsdaily($users->id); $ticketmonthly = $userReports->userreportsmonthly($users->id); $userreportsyearly = $userReports->userreportsyearly($users->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 {{$userreportsyearly['ticket']}}
Total collection this year Rs. {{$userreportsyearly['totalcollection']}}
@foreach($months as $key => $mnth) @php $monthlycollectionuser = $userReports->userreportsmonthlybyname($users->id,$key); @endphp @endforeach
Months Total Collection
{{$mnth}} Rs. {{$monthlycollectionuser['totalcollection']}}
@if(count($vehiclelist)> 0) @foreach ($vehiclelist as $key => $per)
S no. Bill Type Vehicle Type Vehicle No Amount User Date Time
{{ ++$key }} {{$per->description}} Rs {{ $per->amount}} {{ $per->users->name}}