@extends('layouts.admin_master') @section('page-title') Admin | Dashboard @endsection @section('page-content')

Welcome to Airtime Sales Admin Dashboard

MK {{ number_format($current_year_transactions_sum) }}

Sales({{ date('Y') }})

Sales from Merchants to customers

Merchants

{{ number_format($merchant_count) }}

Merchants

Dealers

{{ number_format($dealer_count) }}


Sales (Today)

Today

{{ number_format($current_day_transactions) }}

Last week

{{ number_format($last_weeek_transactions) }}

Top Merchants

Activity

Top Merchants by Sales

@if($top_merchants->isEmpty() == false) {{ number_format($top_merchants[0]->total_amount) }} @else {{ 'N/A' }} @endif

@if($top_merchants->isEmpty() == false) {{ $top_merchants[0]->fullname }} @else {{ 'N/A' }} @endif
@if($top_merchants->count() > 1)

@if($top_merchants->isEmpty() == false) {{ number_format($top_merchants[1]->total_amount) }} @else {{ 'N/A' }} @endif

@if($top_merchants->isEmpty() == false) {{ $top_merchants[1]->fullname }} @else {{ 'N/A' }} @endif
@endif
@if($top_merchants->count() > 2)

@if($top_merchants->isEmpty() == false) {{ number_format($top_merchants[2]->total_amount) }} @else {{ '0.00' }} @endif

@if($top_merchants->isEmpty() == false) {{ $top_merchants[2]->fullname }} @else {{ '0.00' }} @endif

@if($top_merchants->isEmpty() == false) {{ number_format($top_merchants[3]->total_amount) }} @else {{ '0.00' }} @endif

@if($top_merchants->isEmpty() == false) {{ $top_merchants[3]->fullname }} @else {{ 'N/A' }} @endif
@endif
Recent Dealer Sales to Merchants
@forelse ($merchant_topups as $row) @empty @endforelse
Merchant Amount (MK) Status Dealer Name Date
{{ $row->merchantInfo->fullname }} {{ number_format($row->amount) }} ">{{ $row->status }} {{ ucfirst($row->orgUserInfo->name) }} {{ Carbon\Carbon::parse($row->created_at)->format('F d, Y') }}
No Data
Admin Activity
Recent Sales
Sale from Admin to Dealers
@forelse ($dealer_topups as $row)

MK{{ number_format($row->amount) }}

Dealer : {{ $row->orgInfo->name }}
  {{ $row->created_at }}
@empty No Data @endforelse
@endsection @section('page-js') @endsection