@extends('layouts.backend') @section('css_after') @endsection @section('js_after') @endsection @section('content')

ORDER DETAILS

@csrf

Invoice ID: #{{$order->invoice_id}}

Date: {{date('d-m-Y H:i:s', strtotime($order->created_at))}}

Customer Details

Customer Name: {{$order->user->name}}

Email: {{$order->user->email}}

Phone No: {{$order->user->phone_no}}

Company Name: {{$order->user->company_name}}

Billing Details

Name: {{$order->billing->name}}

Email: {{$order->billing->email}}

Phone No: {{$order->billing->phone_no}}

Company Name: {{$order->billing->company_name}}

Country: {{$order->billing->country}}

Address: {{$order->billing->street_name}}, {{$order->billing->city}}, {{$order->billing->state}}, {{$order->billing->zip_code}}

Additional Information: {{$order->billing->additional_info}}

Product And Bill Information

@php $subTotal = 0; @endphp @foreach($order->orderitems as $item) @php //$total_quantity = $total_quantity+$value['quantity']; $subTotal = $subTotal+($item->price*$item->quantity); @endphp @endforeach @php $total = $subTotal-$order->coupon_amount; @endphp
Item Item Name Cost Qty Total
{{$item->name}} ₹{{number_format($item['price'],2)}} {{$item->quantity}}₹{{number_format($item->price*$item->quantity,2)}}
Sub Total ₹{{number_format($subTotal,2)}}
Discount ₹{{number_format($order->coupon_amount,2)}}
Total₹{{number_format($total,2)}}
@if ($errors->has('status')) @endif
@endsection