@extends('admin.layouts.app') @section('main_content')

{{translate($title)}}

{{translate('Customer Details')}}
{{$user->image}}
{{$user->name}}

{{translate('Joining Date')}} {{get_date_time($user->created_at,'d M, Y h:i A')}}

{{translate('Customer information')}}
  • {{translate('Username')}} {{$user->username?? translate('N/A')}}
  • {{translate('Email')}} {{$user->email}}
  • {{translate('Phone')}} {{$user->phone ?? translate('N/A')}}
  • {{translate('Status')}} @if($user->status == 1) {{translate('Active')}} @else {{translate('Banned')}} @endif
  • {{translate('Number Of Orders')}} {{$user->order->count()}}
  • {{translate('Total Item Wishlist')}} {{$user->wishlist->count()}}
  • {{translate('Total Products reviewed')}} {{$user->reviews->count()}}
{{translate('Latest Orders')}}
@forelse($user->order->take(5) as $value) @empty @endforelse
{{translate('Order Number - Time')}} {{translate('Status')}}
{{($value->order_id)}} - {{diff_for_humans($value->created_at)}} @if($value->status == App\Models\Order::PLACED) {{translate('Placed')}} @elseif($value->status == App\Models\Order::CONFIRMED) {{translate('Confirmed')}} @elseif($value->status == App\Models\Order::PROCESSING) {{translate('Processing')}} @elseif($value->status == App\Models\Order::SHIPPED) {{translate('Shipped')}} @elseif($value->status == App\Models\Order::DELIVERED) {{translate('Delivered')}} @elseif($value->status == App\Models\Order::CANCEL) {{translate('Cancel')}} @endif
@include('admin.partials.not_found')
{{translate('Order & Transaction')}}

{{count($user->transaction)}}

{{translate('Total transaction')}}

{{translate('View All')}}

{{$user->physicalProductOrder->count()}}

{{translate('physical product')}}

{{translate('View All')}}

{{$user->digitalProductOrder->count()}}

{{translate('Digital product')}}

{{translate('View All')}}
{{translate('Customer Information Update')}}
@csrf
@endsection @push('script-push') @endpush