{{ $customer->getName() }}

{{ $customer->active ? trans('app.active') : trans('app.inactive') }}
{{ trans('app.avatar') }}
{{ get_formated_currency(\App\Helpers\Statistics::total_spent($customer), 2, config('system_settings.currency.id')) }}
{{ trans('app.spent') }}
 
{{ trans('app.member_since') }}: {{ $customer->created_at->diffForHumans() }}
{{ \App\Helpers\Statistics::customer_orders_count($customer) }}
#{{ trans('app.orders') }}
  • {{ trans('app.basic_info') }}
  • {{ trans('app.addresses') }}
  • @if (Auth::user()->isFromPlatform())
  • {{ trans('app.latest_orders') }}
  • @endif
@if ($customer->name) @endif @if ($customer->dob) @endif @if ($customer->sex) @endif @if ($customer->description) @endif
{{ trans('app.full_name') }}: {{ $customer->name }}
{{ trans('app.email') }}: {{ $customer->email }}
{{ trans('app.dob') }}: {!! date('F j, Y', strtotime($customer->dob)) . ' (' . get_age($customer->dob) . ')' !!}
{{ trans('app.sex') }}: {!! get_formated_gender($customer->sex) !!}
{{ trans('app.description') }}: {!! $customer->description !!}
@foreach ($customer->addresses as $address) {!! $address->toHtml() !!} @unless ($loop->last)
@endunless @endforeach
@if (config('system_settings.address_show_map') && $customer->primaryAddress)
{{ trans('app.map_location') }}
@endif
@if (Auth::user()->isFromPlatform())
@if ($customer->latest_orders->count()) @foreach ($customer->latest_orders as $order) @endforeach
{{ trans('app.order_number') }} {{ trans('app.grand_total') }} {{ trans('app.payment') }} {{ trans('app.status') }} {{ trans('app.order_date') }}
{{ $order->order_number }} {{ get_formated_currency($order->grand_total, 2, $order->currency_id) }} {!! $order->paymentStatusName() !!} {!! $order->orderStatus() !!} {{ $order->created_at->toFormattedDateString() }}
@else

{{ trans('messages.no_orders') }}

@endif
@endif