@extends('backEnd.layouts.master') @section('title', 'Invoice #' . $order->invoice_id) @section('content')
Dashboard
Invoice

{{ $generalsetting->name }}

{{ $contact->phone }}

{{ $contact->email }}

Invoice Number

#{{ $order->invoice_id }}

Issue Date

{{ $order->created_at->format('d M, Y') }}

Billing Address

{{ $order->shipping ? $order->shipping->name : 'N/A' }}

{{ $order->shipping ? $order->shipping->address : '' }}

{{ $order->shipping ? $order->shipping->area : '' }}

Phone: {{ $order->shipping ? $order->shipping->phone : '' }}

Transaction Details

Status: {{ $order->status->name ?? 'Paid' }}

Method: {{ $order->payment ? $order->payment->payment_method : 'COD' }}

Company Info

{{ $contact->address }}

Dhaka, Bangladesh

@foreach($order->orderdetails as $key => $value) @endforeach
SKU / Code Item & Description Price Qty Amount
ITEM-{{ $value->product_id }} {{ $value->product_name }} @if($value->product_color) COLOR: {{ $value->product_color }} @endif @if($value->product_size)  •  SIZE: {{ $value->product_size }} @endif ৳{{ number_format($value->sale_price, 0) }} {{ $value->qty }} ৳{{ number_format($value->sale_price * $value->qty, 0) }}
Subtotal ৳{{ number_format($order->orderdetails->sum(function ($i) { return $i->sale_price * $i->qty; }), 0) }}
Logistics Fee ৳{{ number_format($order->shipping_charge, 0) }}
Discount Applied -৳{{ number_format($order->discount, 0) }}
TOTAL ৳{{ number_format($order->amount, 0) }}
@endsection