@extends('layouts.admin') @section('content')
Recently Loggon Users

{{count($users)}} Recent Loggon Users

User that logged in for the past 24hrs

Active Users
{{-- --}} @if(count($users) > 0) @foreach ($users as $uu ) {{-- --}} @endforeach @endif
Name Email IP Location
{{$uu->first_name}} {{$uu->email}} {{$uu->login_ip}} @php $details = json_decode(file_get_contents("http://ipinfo.io/".$uu->login_ip."/json")); echo $details->city.", ".$details->country; @endphp
Today's Users

{{count($new_users)}} Total New Users

Total new registered users since today

Today Registered Users
{{-- --}} @if(count($new_users) > 0) @foreach ($new_users as $uu ) {{-- --}} @endforeach @endif
Name Email IP Location
{{$uu->first_name}} {{$uu->email}} {{$uu->login_ip}} @php $details->city.", ".$details->country; @endphp
Logon Users for the past 7 days

{{count($recentActive)}} This week Active Users

Total User that have logon since the past 7 days

Logon Users for the past 7 days
{{-- --}} @if(count($recentActive) > 0) @foreach ($recentActive as $uu ) --}} @endforeach @endif
Name Email IP Location Last Login
{{$uu->first_name}} {{$uu->email}} {{$uu->login_ip}} {{-- @php echo $details->city.", ".$details->country; @endphp {{$uu->updated_at->DiffForHumans()}}
This Week's Users

{{count($thisweek)}} New this week

Total new registered users since 7 days ago

This week Registered Users
{{-- --}} @if(count($thisweek) > 0) @foreach ($thisweek as $uu ) {{-- --}} @endforeach @endif
Name Email IP LocationJoined
{{$uu->first_name}} {{$uu->email}} {{$uu->login_ip}} @php $details = json_decode(file_get_contents("http://ipinfo.io/".$uu->login_ip."/json")); echo $details->city.", ".$details->country; @endphp {{$uu->created_at->DiffForHumans()}}
{{--
Orders Today

{{count($orders)}} Orders Today

Total Orders for the past 24 hours

Orders Today
@if(count($orders) > 0) @foreach ($orders as $sp) @endforeach @endif
S/N User Email Order No Payment Ref Payment Method Amount Payment Status
{{$sp->id}} {{substr($sp->user->email,0,15)}}.. {{$sp->order_No}} {{$sp->payment_ref}} {{$sp->payment_method}} {{number_format($sp->amount,2)}} @if($sp->is_paid == 1) Paid @else Pending @endif
7 Days Orders

{{count($av_orders)}} 7 Days Orders

Total Orders for the past 7 days

Orders for 7 Days
@if(count($av_orders) > 0) @foreach ($av_orders as $sp) @endforeach @endif
S/N User Email Order No Payment Ref Payment Method Amount Payment Status
{{$sp->id}} {{substr($sp->user->email,0,15)}}.. {{$sp->order_No}} {{$sp->payment_ref}} {{$sp->payment_method}} {{number_format($sp->amount,2)}} @if($sp->is_paid == 1) Paid @else Pending @endif
--}}
@endsection