@extends('layouts.admin.app') @section('title', translate('Customer Details')) @push('css_or_js') @endpush @section('content')

{{ translate('customer_Details') }}

{{ translate('customer_ID') }} #{{ $customer['id'] }}

{{ translate('joined_at') }} : {{ date('d M Y H:i:s', strtotime($customer['created_at'])) }}
{{ translate('credit_balance') }} {{ $customer['wallet_balance'] }}
@foreach ($orders as $key => $order) @endforeach
{{ translate('SL') }} {{ translate('order_ID') }} {{ translate('total_Amount') }} {{ translate('order_status') }} {{ translate('order_date') }} {{ translate('action') }}
{{ $orders->firstItem() + $key }} {{ $order['id'] }} {{ \App\CentralLogics\Helpers::set_symbol($order['order_amount']) }} @if ($order['order_status'] == 'pending') {{ translate('pending') }} @elseif($order['order_status'] == 'confirmed') {{ translate('confirmed') }} @elseif($order['order_status'] == 'processing') {{ translate('processing') }} @elseif($order['order_status'] == 'out_for_delivery') {{ translate('out_for_delivery') }} @elseif($order['order_status'] == 'delivered') {{ translate('delivered') }} @elseif($order['order_status'] == 'failed') {{ translate('failed_to_deliver') }} @else {{ str_replace('_', ' ', $order['order_status']) }} @endif
{{ date('d M Y', strtotime($order['created_at'])) }}
{{ date('h:i A', strtotime($order['created_at'])) }}
{{-- --}}
{!! $orders->links() !!}

{{ $customer['f_name'] . ' ' . $customer['l_name'] }}

@if ($customer)
Image Description
{{ $customer->orders->count() }} {{ translate('orders') }}
@endif

{{ translate('addresses') }}

@if(count($customer->addresses) == 0) @endif
@if ($customer)
@foreach ($customer->addresses as $address)
@endforeach
@endif
{{-- Customer Address Model--}} @endsection @push('script_2') @endpush