@extends('backEnd.master') @section('styles') @endsection @section('mainContent')

{{ __('common.customer_profile')}}

{{$customer->first_name}} {{$customer->last_name}}

{{ __('common.name') }} : {{$customer->first_name}} {{$customer->last_name}}
{{ __('common.email') }} : {{ $customer->email }}
{{ __('common.phone') }} : {{ ($customer->phone) ?? $customer->username }}
{{ __('common.registered_date') }} : {{ date(app('general_setting')->dateFormat->format, strtotime($customer->created_at)) }}
{{ __('common.active_status') }} : @if ($customer->is_active == 1) {{__('common.active')}} @elseif($customer->is_active == 0) {{__('common.disabled')}} @else {{__('common.in-active')}} @endif

{{__('common.order_summary')}}

{{__('common.total_orders')}} : {{count($customer->orders)}}
{{__('common.confirmed_orders')}} : {{count($customer->orders->where('is_confirmed', 1)->where('is_completed', 0))}}
{{__('common.pending_orders')}} : {{count($customer->orders->where('is_confirmed', 0))}}
{{__('common.completed_orders')}} : {{count($customer->orders->where('is_completed', 1))}}
{{__('common.cancelled_orders')}} : {{count($customer->orders->where('is_cancelled', 1))}}

{{__('common.wallet_summary')}}

{{__('common.total_recharge')}} : {{single_price($customer->wallet_balances->where('type', 'Deposite')->sum('amount'))}}
{{__('common.pending_balance_approval')}} : {{single_price($customer->CustomerCurrentWalletPendingAmounts)}}
{{__('common.total_balance')}} : {{single_price($customer->CustomerCurrentWalletAmounts)}}
@if ($customer->description)

@endif
{{__('common.sl')}} {{__('common.date')}} {{__('common.order_id')}} {{__('order.total_product_qty')}} {{__('common.total_amount')}} {{__('order.order_status')}} {{__('order.is_paid')}} {{__('common.action')}}
{{__('common.sl')}} {{__('common.date')}} {{__('common.user')}} {{__('order.txn_id')}} {{__('common.amount')}} {{__('common.type')}} {{__('common.payment_method')}} {{__('common.approval')}}
@foreach ($customer->customerAddresses as $key => $address) @endforeach
{{ __('common.sl') }} {{ __('common.full_name') }} {{ __('common.address') }} {{ __('common.region') }} {{ __('common.email') }} {{ __('common.phone_number') }} {{ __('common.postcode') }}
{{ $key+1 }} {{ $address->name }} {{ $address->address }} {{ $address->city.'-'.$address->state.'-'.$address->country }} {{ $address->email }} {{ $address->phone }} {{ $address->postal_code }}
@endsection @push("scripts") @endpush