@extends('layouts.front') @section('css') @endsection @section('content')
@include('includes.user.sidebar')

@lang('Dashboard')

{{ Auth::user()->orders()->count() }}

@lang('Total Orders')

{{ Auth::user()->orders()->where('status', 'pending')->count() }}

@lang('Pending Orders')

{{ PriceHelper::showCurrencyPrice($user->affilate_income*$curr->value) }}

@lang('Affiliate Bonus')

{{ PriceHelper::showCurrencyPrice(Auth::user()->balance*$curr->value) }}

@lang('Wallet Balance')

@lang('Recent Orders')

@foreach (Auth::user()->orders()->latest()->take(6)->get() as $order) @endforeach
@lang('#Order') @lang('Date') @lang('Order Total') @lang('Order Status') @lang('View')
{{ $order->order_number }} {{ date('d M Y', strtotime($order->created_at)) }} {{ \PriceHelper::showAdminCurrencyPrice($order->pay_amount * $order->currency_value, $order->currency_sign) }} @php if ($order->status == 'pending') { $class = 'yellow-btn'; } elseif ($order->status == 'processing') { $class = 'yellow-btn'; } elseif ($order->status == 'completed') { $class = 'green-btn'; } elseif ($order->status == 'declined') { $class = 'red-btn'; }else if($order->status == "on delivery"){ $class = 'black-btn'; } @endphp
@endsection