First Name {{ $customer->name }}
Email {{ $customer->email }}
Gender -
Date of Birth -
Phone -
{{--

Order Details

@foreach ($customer->orders as $key => $order) @endforeach
Sl No Order Date Total Items Sub Total Tax Total Grand Total Action
{{ $key + 1 }} {{ $order->order_date }} {{ $order->total_items }} ${{ $order->sub_total }} ${{ $order->tax_total }} ${{ $order->grand_total }}

Total Summary

Sub Total - ${{ $customer->orders()->sum('sub_total') }}
Tax - $ {{ $customer->orders()->sum('tax_total') }}
Total - ${{ $customer->orders()->sum('grand_total') }}

Product Review

@foreach ($customer->reviews as $key => $review) @endforeach
Sl No Product Name Reviews Rating Date
{{ $key + 1 }} {{ $review->reviewable_type::find($review->reviewable_id)->name }} {{ $review->title }} {{ $review->rating }} {{ $review->created_at->format('d-m-Y') }}
--}}