@extends('layouts/contentLayoutMaster') @section('title', 'Show Invoice ') @section('main-page', 'Invoices') @section('sub-page', 'Show Invoice') @section('main-page-url', route("invoices.index")) @section('sub-page-url', route("invoices.show",$model->id)) @section('vendor-style') @endsection @section('content')
Issued Date: {{ $model->issued_date }}
Invoice to:
Name: {{ $model->order->orderAddress?->name }}
Email Address: {{ $model->order->orderAddress?->email }}
Phone Number: {{ $model->order->orderAddress?->phone}}
{{-- --}} {{--
--}} {{--
Invoice Status
--}} {{-- @foreach (\App\Enums\Invoice\InvoiceStatusEnum::cases() as $status)--}} {{--
--}} {{-- invoice_status->value ?? 2) == $status->value ? 'checked' : '' }}>--}} {{-- --}} {{--
--}} {{-- @endforeach--}} {{--
--}}
{{--
Shipping Details
--}}
{{-- Address:
1234 Example St, Suite 100
City, Country
Delivery Instructions:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Estimated delivery time

Tomorrow, 2:00 PM - 4:00 PM
--}}
{{--

Order Placed on:

April 30, 2025

--}}
@foreach ($model->order?->orderItems ??[] as $design) @php $product = $design->itemable; @endphp
Product
{{ $product->name ?? 'No Product Found' }}
Qty: {{ $design->quantity }}
@if($design->discount_amount > 0)
{{ number_format(($design->sub_total) ?? 0, 2) }}
{{ number_format($design->sub_total - $design->discount_amount ?? 0, 2) }}
-{{ number_format($design->discount_amount, 2) }}
@else
{{ number_format($design->sub_total ?? 0, 2) }}
@endif
@endforeach
Pricing Details
Subtotal {{$model->subtotal}}
Discount -{{$model->discount_amount}}
Delivery {{$model->delivery_amount}}
Tax {{ $model->tax_amount }}

Total {{$model->total_price}}
Download
@endsection @section('vendor-script') @endsection @section('page-script') @endsection