Invoice: #{{$data->order_id}}

Date

Invoice Data: {{date('d M Y',strtotime($data->created_at))}}

User Address

{{!empty($data->userAddress)?$data->userAddress->house_no:''}}
{{!empty($data->userAddress)?$data->userAddress->appartment:''}}
{{!empty($data->userAddress)?$data->userAddress->address:''}}

User Detail

{{!empty($data->userAddress)?ucfirst($data->userAddress->first_name):''}} {{!empty($data->userAddress)?ucfirst($data->userAddress->last_name):''}}
{{!empty($data->userAddress)?$data->userAddress->contact_no:''}}

Order summary

@php $sum = 0; @endphp @foreach($data->orderItems as $order_item) @php $sum += $order_item->item_price * $order_item->quantity; @endphp @endforeach
Item Price Quantity Totals
{{$order_item->product->title}}
KD {{$order_item->item_price}} {{$order_item->quantity}} KD 0
SubTotal KD {{$sum}}
Tax KD 0
Grand Total KD {{$sum}}
{{--
anything else to this order!

--}}