@extends('layouts.base') @section('title', 'Panel - Stats') @section('content')

Stats

Countries stats

Range

Global

{{ $stats['global']['moneyInvoiced'] }} USD

@if ($from->isToday() && $to->isToday())

$stats['percentageDifference'] > 0, 'text-red-500' => $stats['percentageDifference'] < 0, 'text-gray-500' => $stats['percentageDifference'] === 0, ])>{{ $stats['percentageDifference'] }}% compared to yesterday at this time

@endif

{{ $stats['global']['paid'] }} payments

@if ($from->isToday() && $to->isToday())

{{ $stats['yesterdayPayments'] }} payments yesterday at this time. {{ $stats['yesterdayEarnings'] }} USD

@endif
Global
@foreach ($stats as $iso2 => $value) @continue(in_array($iso2, ['global', 'last7Days', 'yesterdayByHour', 'todayByHour', 'percentageDifference', 'yesterdayPayments', 'yesterdayEarnings']))

{{ config('countries')[$iso2]['name'] }}

{{ $value['moneyInvoiced'] }} USD

{{ $value['paid'] }} payments

@endforeach

Global

By Country

Last 7 Days

Comparison yesterday and today (hour by hour)

@foreach ($stats as $iso2 => $value) @continue(in_array($iso2, ['global', 'last7Days', 'yesterdayByHour', 'todayByHour', 'percentageDifference', 'yesterdayPayments', 'yesterdayEarnings']))
@endforeach
@endsection @push('scripts') @endpush