@props([ 'iso' => '', 'value' => [], 'stats' => [], 'from' => null, 'to' => null, ])

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

{{ $value['moneyInvoiced'] }} USD @if($value['refundMoney'] > 0) - {{ $value['refundMoney'] }} USD @endif

@if ($value['refundMoney'] > 0)

Total @if($value['profit'] <= 0) {{$value['profit']}} USD @else {{$value['profit']}} USD @endif

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

$stats['countries'][$iso]['today']['difference'] > 0, 'text-red-500' => $stats['countries'][$iso]['today']['difference'] < 0, 'text-neutral-400' => $stats['countries'][$iso]['today']['difference'] === 0, ])>{{ $stats['countries'][$iso]['today']['difference'] }}% compared to yesterday at this time

@endif

{{ $value['paid'] }} payments @if ($value['refunded'] > 0) {{ $value['refunded'] }} refunds @endif

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

{{ $stats['countries'][$iso]['yesterday']['paid'] }} payments yesterday at this time. {{ $stats['countries'][$iso]['yesterday']['moneyInvoiced'] }} USD

@endif