@extends('admin.layouts.main') @section('title', 'Dashboard') @section('content')
@if ( $authUser->hasPermissionTo('list - ongoing deals') || $authUser->hasPermissionTo('list - Cancelled Deals') || $authUser->hasPermissionTo('list - hold amount deals') || $authUser->hasPermissionTo('list - dispute deals') || $authUser->hasPermissionTo('buy and sell statistics - dashboard') || $authUser->hasPermissionTo('earnings chart - dashboard') || $authUser->id == 1)
@if ( $authUser->hasPermissionTo('list - ongoing deals') || $authUser->hasPermissionTo('list - Cancelled Deals') || $authUser->hasPermissionTo('list - hold amount deals') || $authUser->hasPermissionTo('list - dispute deals') || $authUser->id == 1)
{{-- {{ dd($authUser) }} --}} @if ($authUser->hasPermissionTo('list - ongoing deals') || $authUser->id == 1)
ongoing deals
@lang('message.on_going_deals'): {{ $data['ongoingDeals']['count'] ?? 0 }}
{{ formatCurrency($data['ongoingDeals']['usd_total'], USD, 0, 1) }} ({{ $data['ongoingDeals']['usd_deals'] }} Deals)
{{ formatCurrency($data['ongoingDeals']['mxn_total'], MXN, 0, 1) }} ({{ $data['ongoingDeals']['mxn_deals'] }} Deals)
{{-- +72.80% --}}
@endif @if ($authUser->hasPermissionTo('list - dispute deals') || $authUser->id == 1)
disputed deals
@lang('message.disputed_deals'): {{ $data['disputedDeals']['count'] ?? 0 }}
{{ formatCurrency($data['disputedDeals']['usd_total'], USD, 0, 1) }} ({{ $data['disputedDeals']['usd_deals'] }} Deals)
{{ formatCurrency($data['disputedDeals']['mxn_total'], MXN, 0, 1) }} ({{ $data['disputedDeals']['mxn_deals'] }} Deals)
{{-- +72.80% --}}
@endif @if ($authUser->hasPermissionTo('list - Cancelled Deals') || $authUser->id == 1)
ongoing deals
@lang('message.cancel_deals'): {{ $data['cancelDeals']['count'] ?? 0 }}
{{ formatCurrency($data['cancelDeals']['usd_total'], USD, 0, 1) }} ({{ $data['cancelDeals']['usd_deals'] }} Deals)
{{ formatCurrency($data['cancelDeals']['mxn_total'], MXN, 0, 1) }} ({{ $data['cancelDeals']['mxn_deals'] }} Deals)
{{-- +72.80% --}}
@endif @if ($authUser->hasPermissionTo('list - hold amount deals') || $authUser->id == 1)
ongoing deals
@lang('message.hold_amount_deals'): {{ $data['holdDeals']['count'] ?? 0 }}
{{ formatCurrency($data['holdDeals']['usd_total'], USD, 0, 1) }} ({{ $data['holdDeals']['usd_deals'] }} Deals)
{{ formatCurrency($data['holdDeals']['mxn_total'], MXN, 0, 1) }} ({{ $data['holdDeals']['mxn_deals'] }} Deals)
{{-- +72.80% --}}
@endif
@endif @if ($authUser->hasPermissionTo('buy and sell statistics - dashboard') || $authUser->id == 1)
@lang('message.transfer_fees') :
{{ formatCurrency($data['commissionUSD'], USD, 0, 1) }}
{{ formatCurrency($data['commissionMXN'], MXN, 0, 1) }}
@lang('message.sale_statistics')

{{ $data['totalDeals'] }}

@lang('message.total_deals')
  • @lang('message.seller')
    {{ $data['totalSellDeals'] }}
  • @lang('message.buyer')
    {{ $data['totalBuyDeals'] }}
@endif
@if ($authUser->hasPermissionTo('earnings chart - dashboard') || $authUser->id == 1)
{{-- --}}
{{ __('message.yearly_earnings', ['year' => $data['selectedYear']]) }}
@if ($authUser->hasPermissionTo('earnings chart - dashboard') || $authUser->id == 1) @endif
{{-- --}}
@endif @else

@lang('message.no_content')

{{-- +72.80% --}}
@endif
@endsection @section('scripts') @if ($authUser->hasPermissionTo('earnings chart - dashboard') || $authUser->id == 1) @endif @endsection