@extends('layouts/layoutMaster') @section('title', 'Analytics') @section('vendor-style') @endsection @section('page-style') @endsection @section('vendor-script') @endsection @section('page-script') @endsection @section('content') @include('notifications')
Total Statistics Today
Updated at {{ date('H:i:s') }}
{{isset($statistics["total_tickets_today"])?$statistics["total_tickets_today"]->count():0}}
K{{ isset($statistics["total_tickets_today"]) ? number_format($statistics["total_tickets_today"]->sum('game_amount'),2) : 0 }}
Total Tickets Played
{{isset($statistics["total_tickets_today"])?$statistics["total_tickets_today"]->where('status','WIN')->count():0}}
K{{ isset($statistics["total_tickets_today"]) ? number_format($statistics["total_tickets_today"]->where('status','WIN')->sum('won_amount'),2) : 0 }}
Won Tickets
{{ isset($statistics["total_tickets_today"]) ? $statistics["total_tickets_today"]->where('status','SUBMITTED')->count() : 0 }}
Pending Tickets
ZMW{{ isset($statistics["total_recharges_today"]) ? number_format($statistics["total_recharges_today"]->sum('amount'),2) : 0 }}
Total Recharges
{{isset($statistics["total_new_games_today"])?$statistics["total_new_games_today"]->count():0}}
New Games
{{isset($statistics["total_new_customers_today"])?$statistics["total_new_customers_today"]->count():0}}
New Customers
Weekly Overview
{{isset($statistics["total_weekly_tickets"])?$statistics["total_weekly_tickets"]->count():0}}
Total Tickets

K {{isset($statistics["total_weekly_tickets"])?$statistics["total_weekly_tickets"]->sum('loan_amount'):0}}

{{isset($statistics["total_weekly_tickets"])?$statistics["total_weekly_tickets"]->where('status','WIN')->count():0}}
Won Tickets

K {{isset($statistics["total_weekly_tickets"])?$statistics["total_weekly_tickets"]->where('status','WIN')->sum('game_amount'):0}}

{{isset($statistics["total_weekly_tickets"])?$statistics["total_weekly_tickets"]->where('status','!=','WIN')->count():0}}
Others

K {{isset($statistics["total_weekly_tickets"])?$statistics["total_weekly_tickets"]->where('status','!=','WIN')->sum('game_amount'):0}}

Customer Tracker

{{isset($statistics["total_customers"])?$statistics["total_customers"]:0}}

Total Customers

    Last 7 Days
  • New Customers
    {{isset($statistics["total_weekly_customers"])?$statistics["total_weekly_customers"]->count():0}}
  • Pending Activation
    {{isset($statistics["total_pending_activation_customers"])?$statistics["total_pending_activation_customers"]:0}}
  • Suspended Customers
    {{isset($statistics["total_suspended_customers"])?$statistics["total_suspended_customers"]:0}}
@endsection