@extends('layouts.super-admin-layout') @section('content')
Admin

{{ $customer->name }}

{{ $customer->designation }}

{{ $customer->address }}

{{ $customer->email }}

{{ $customer->phone }}

Order History

@if(count($customer_orders)) @foreach($customer_orders as $key) @endforeach @endif
# Customer Info Invoice ID Payment Method Total Amount Order Time Appx. Delivered Time Status Actions
{{ $loop->index +1 }} {{$key->customer->name}}
{{$key->customer->phone}}
{{$key->customer->address}}
{{ $key->invoice_id }} {!! str_replace('_', ' ', $key->payment_method) !!} ৳{{ number_format((float)$key->total_amount + $key->shipping_charge - $key->coupon_discount, 2, '.', '')}} {{ $key->created_at->format('d-m-Y h:i A') }} @if($key->approximate_delivered_time) {{ date('d-m-Y h:i A', strtotime($key->approximate_delivered_time)) }} @endif @if($key->order_status =="Pending")
Pending
@elseif($key->order_status =="Placed")
Placed
@elseif($key->order_status =="Confirmed")
Confirmed
@elseif($key->order_status =="Proceed")
Proceed
@elseif($key->order_status =="Delivered")
Delivered
@elseif($key->order_status =="Completed")
Completed
@endif
{{$customer_orders->links("pagination::bootstrap-4")}}
Billing and Delivery Address

Billing Address
Name {{ $customer->billing?$customer->billing->name:"" }}
Email {{ $customer->billing?$customer->billing->email:"" }}
Phone {{ $customer->billing?$customer->billing->phone:"" }}
Address {{ $customer->billing?$customer->billing->address:"" }}
City {{ $customer->billing?$customer->billing->town_city:"" }}
Country {{ $customer->billing?$customer->billing->country:"" }}
Zip Code {{ $customer->billing?$customer->billing->zip_code:"" }}
Delivery Address
Name {{ $customer->shipping?$customer->shipping->ship_name:"" }}
Email {{ $customer->shipping?$customer->shipping->ship_email:"" }}
Phone {{ $customer->shipping?$customer->shipping->ship_phone:"" }}
Address {{ $customer->shipping?$customer->shipping->ship_address:"" }}
City {{ $customer->shipping?$customer->shipping->ship_town_city:"" }}
Country {{ $customer->shipping?$customer->shipping->ship_country:"" }}
Zip Code {{ $customer->shipping?$customer->shipping->ship_zip_code:"" }}
@endsection