@extends(template().'layouts.user') @section('title', trans('Dashboard')) @section('content')

@lang("Dashboard")

@lang('Balance')
@if(optional(auth()->user())->currency && $currency) {{ currencyPositionBySelectedCurrency($walletBalance * $currency->conversion_rate, auth()->user()->currency) }} @else {{ currencyPosition($walletBalance) }} @endif
@lang('Deposits')
@if(optional(auth()->user())->currency && $currency) {{ currencyPositionBySelectedCurrency($totalLast7DaysDeposits * $currency->conversion_rate, auth()->user()->currency) }} @else {{ currencyPosition($totalLast7DaysDeposits) }} @endif
@if(optional(auth()->user())->currency && $currency) {{ currencyPositionBySelectedCurrency($totalYearDeposits * $currency->conversion_rate, auth()->user()->currency) }} @else {{ currencyPosition($totalYearDeposits) }} @endif
@lang('Orders')
{{ number_format($orders['processing'] ?? 0) }}
{{ number_format($orders['completed'] ?? 0) }}
{{ number_format($orders['canceled'] ?? 0) }}

@lang('Deposit Statistics')

@lang('Transaction Statistics')

@lang('Support Tickets')
{{ number_format($tickets['pending'] ?? 0) }}
{{ number_format($tickets['answered'] ?? 0) }}
{{ number_format($tickets['closed'] ?? 0) }}

@lang("Latest Transaction")

@if(count($transactions) > 0)
@forelse($transactions as $transaction) @empty @endforelse
@lang("Transaction ID") @lang("Amount") @lang("Remarks") @lang("Time & Date")
{{ '#' . $transaction->trx_id }} {{($transaction->trx_type == "+") ? '+': '-'}} @if(auth()->user()->currency && $currency) {{ currencyPositionBySelectedCurrency($transaction->amount * $currency->conversion_rate, auth()->user()->currency) }} @else {{ currencyPosition($transaction->amount) }} @endif @lang($transaction->remarks) {{ dateTime($transaction->created_at) }}
@else
Image Description

@lang("No transactions available to display.")

@endif
@endsection @push('js-lib') @endpush @push('script') @endpush @if($firebaseNotify) @push('script') @endpush @endif