@extends('admin_dashboard') @section('admin')

Order Details

{{--
--}} @csrf
Order Details
profile-image

{{ $order->customer->name }}

{{ $order->customer->email }}

{{ $order->customer->phone }}

{{ $order->order_date }}

{{ $order->invoice_no }}

{{--

{{ $order->payment_status }}

--}}

{{ $order->sub_total }}

{{ $order->pay }}

{{ $order->due }}

@foreach($orderItem as $item) {{-- --}} @endforeach
Image Product Name Product Code Quantity Unit Price Total Discount Total(+vat)
{{ $item->product->product_name }} {{ $item->product->product_code }} {{ $item->quantity }} {{ $item->unitcost }} {{ ($item->discount_amount ?? '0') * $item->quantity}}{{ $item->total}}

Amount Before Discount: Tk. {{ $order->total }}

Total Discount: Tk. {{ $totalDiscount }}

Total Payment: Tk. {{ $totalAmount }}

{{--

Total: $ {{ $order->user->name }}

--}}
@endsection