@extends('layouts.app') @section('head') @include('layouts.partials.headersection',['title'=>'Customer Info']) @endsection @section('content')
  • {{ __('Name') }}: {{ $info->name }}
  • {{ __('Email') }}: {{ $info->email }}
  • {{ __('Registered At') }}: {{ $info->created_at->diffForHumans() }}
  • {{ __('Registration Date') }}: {{ $info->created_at->format('d-F-Y') }}
  • {{ __('Total Orders') }} {{ $info->orders_count }}
  • {{ __('Total Processing Orders') }} {{ $info->orders_processing_count }}
  • {{ __('Total Complete Orders') }} {{ $info->orders_complete_count }}
  • {{ __('Total Spend Of Amount') }} {{ amount_format($earnings) }}

{{ __('Order History') }}

@foreach($orders as $row) @endforeach
{{ __('Invoice ID') }} {{ __('Amount') }} {{ __('Items') }} {{ __('Payment Metho') }}d {{ __('Payment Status') }} {{ __('Order Statu') }}s {{ __('Due Date') }} {{ __('Action') }}
{{ $row->order_no }} {{ amount_format($row->total) }} {{ $row->order_item_count }} {{ $row->payment_method->method->name ?? '' }} @if($row->payment_status==2) {{ __('Pending') }} @elseif($row->payment_status==1) {{ __('Complete') }} @elseif($row->payment_status==0) {{ __('Cancel') }} @elseif($row->payment_status==3) {{ __('Incomplete') }} @endif @if($row->status=='pending') {{ __('Awaiting processing') }} @elseif($row->status=='processing') {{ __('Processing') }} @elseif($row->status=='ready-for-pickup') {{ __('Ready for pickup') }} @elseif($row->status=='completed') {{ __('Completed') }} @elseif($row->status=='archived') {{ __('Archived') }} @elseif($row->status=='canceled') {{ __('Canceled') }} @else {{ $row->status }} @endif {{ $row->created_at->format('d-F-Y') }} {{ __('Detail') }}
{{ $orders->links('vendor.pagination.bootstrap-4') }}
@endsection