@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)
@endif
@if ($authUser->hasPermissionTo('list - dispute deals') || $authUser->id == 1)
@endif
@if ($authUser->hasPermissionTo('list - Cancelled Deals') || $authUser->id == 1)
@endif
@if ($authUser->hasPermissionTo('list - hold amount deals') || $authUser->id == 1)
@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) }}
{{ $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