@extends('frontend.layouts.user_panel') @section('panel_content')
@if (get_setting('wallet_system') == 1)

{{ translate('Wallet Balance') }}

{{ single_price(Auth::user()->balance) }}


@php $last_recharge = get_user_last_wallet_recharge(); @endphp

{{ translate('Last Recharge') }} {{ $last_recharge ? date('d.m.Y', strtotime($last_recharge->created_at)) : '' }}

{{ $last_recharge ? single_price($last_recharge->amount) : 0 }}

@endif
{{ translate('Total Expenditure') }} {{ single_price(get_user_total_expenditure()) }}
{{ translate('View Order History') }}
@if (addon_is_activated('club_point'))
{{ translate('Total Club Points') }} {{ get_user_total_club_point() }}
{{ translate('Convert Club Points') }}
@endif
@php $cart = get_user_cart(); @endphp {{ count($cart) > 0 ? sprintf("%02d", count($cart)) : 0 }} {{ translate('Products in Cart') }}
{{ count(Auth::user()->wishlists) > 0 ? sprintf("%02d", count(Auth::user()->wishlists)) : 0 }} {{ translate('Products in Wishlist') }}
@php $total = get_user_total_ordered_products(); @endphp {{ $total > 0 ? sprintf("%02d", $total) : 0 }} {{ translate('Total Products Ordered') }}
@if (get_setting('classified_product'))
{{ translate('Purchased Package') }}
@php $customer_package = get_single_customer_package(Auth::user()->customer_package_id); @endphp @if($customer_package != null)

{{ translate('Current Package') }}: {{ $customer_package->getTranslation('name') }}

{{ translate('Product Upload') }} {{ $customer_package->product_upload }} {{ translate('Times')}}

{{ translate('Product Upload Remains') }} {{ Auth::user()->remaining_uploads }} {{ translate('Times')}}

@else {{translate('Package Not Found')}} @endif {{ translate('Upgrade Package') }}
@endif
{{ translate('Default Shipping Address') }}
@if(Auth::user()->addresses != null) @php $address = Auth::user()->addresses->where('set_default', 1)->first(); @endphp @if($address != null)
  • {{ $address->address }},
  • {{ $address->postal_code }} - {{ $address->city->name }},
  • {{ $address->state->name }},
  • {{ $address->country->name }}.
  • {{ $address->phone }}
@endif @endif

{{ translate('My Wishlist')}}

{{ translate('View All') }}
@php $wishlists = get_user_wishlist(); @endphp @if (count($wishlists) > 0)
@foreach($wishlists->take(5) as $key => $wishlist) @if ($wishlist->product != null)
{{ $wishlist->product->getTranslation('name') }}
{{ home_discounted_base_price($wishlist->product) }} @if(home_base_price($wishlist->product) != home_discounted_base_price($wishlist->product)) {{ home_base_price($wishlist->product) }} @endif
@endif @endforeach
@else
Image
{{ translate("There isn't anything added yet")}}
@endif @endsection @section('modal') @include('frontend.partials.wallet_modal') @include('frontend.partials.address_modal') @endsection @section('script') @if (get_setting('google_map') == 1) @include('frontend.partials.google_map') @endif @endsection