@extends('user::layouts.master') @section('breadcrumb_title', trans('backend::translate.Invoice')) @push('styles') @endpush @section('content')
Download PDF

Invoice

@if ($order->paid_at) @endif
Invoice ID #{{ $order->order_number }}
Date {{ $order->created_at->format('d/m/Y') }}
Paid Date {{ $order->paid_at->format('d/m/Y') }}
Status {{ ucfirst($order->payment_status) }}
Payment Method {{ $order->payment_method ? ucfirst($order->payment_method) : 'N/A' }}

Billed To

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

@if ( isset($order->billing_address['address']) && $order->billing_address['address']) {{ $order->billing_address['address'] ?? '' }}, @endif @if ( isset($order->billing_address['city']) && $order->billing_address['city']) {{ $order->billing_address['city'] ?? '' }}, @endif @if ( isset($order->billing_address['state']) && $order->billing_address['state']) {{ $order->billing_address['state'] ?? '' }}, @endif @if ( isset($order->billing_address['country']) && $order->billing_address['country']) {{ $order->billing_address['country'] ?? '' }} - @endif @if ( isset($order->billing_address['zip_code']) && $order->billing_address['zip_code']) {{ $order->billing_address['zip_code'] ?? '' }} @endif

Email

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

@if (isset($order->billing_address['phone']))

Phone

{{ $order->billing_address['phone'] }}

@endif
@if (!$order->same_as_billing && $order->shipping_address)

Shipped To

{{ $order->shipping_address['name'] ?? $order->user->name }}

@if ( isset($order->shipping_address['address']) && $order->shipping_address['address']) {{ $order->shipping_address['address'] ?? '' }}, @endif @if ( isset($order->shipping_address['city']) && $order->shipping_address['city']) {{ $order->shipping_address['city'] ?? '' }}, @endif @if ( isset($order->shipping_address['state']) && $order->shipping_address['state']) {{ $order->shipping_address['state'] ?? '' }}, @endif @if ( isset($order->shipping_address['country']) && $order->shipping_address['country']) {{ $order->shipping_address['country'] ?? '' }} - @endif @if ( isset($order->shipping_address['zip_code']) && $order->shipping_address['zip_code']) {{ $order->shipping_address['zip_code'] ?? '' }} @endif

@if (isset($order->shipping_address['phone']))

Phone

{{ $order->shipping_address['phone'] }}

@endif
@endif
@foreach ($order->orderItems as $item) @endforeach
Product Name Qty Price Total

{{ $item->product_name }}

@if ($item->product_sku)

SKU: {{ $item->product_sku }}

@endif @if ($item->product_description)

{{ $item->product_description }}

@endif @if ($item->product_options)
@foreach ($item->product_options as $key => $value) {{ ucfirst($key) }}: {{ $value }} @endforeach
@endif

{{ $item->quantity }}

{{ $order->currency }}{{ number_format($item->final_price, 2) }}

{{ $order->currency }}{{ number_format($item->total_price, 2) }}

Sub Total

{{ $order->currency }}{{ number_format($order->subtotal, 2) }}

@if ($order->discount_amount > 0)

Discount ({{ $order->discount_percentage }}%)

-{{ $order->currency }}{{ number_format($order->discount_amount, 2) }}

@endif @if ($order->tax_amount > 0)

VAT ({{ $order->tax_percentage }}%)

{{ $order->currency }}{{ number_format($order->tax_amount, 2) }}

@endif @if ($order->shipping_amount > 0)

Shipping

{{ $order->currency }}{{ number_format($order->shipping_amount, 2) }}

@endif

Total

{{ $order->currency }}{{ number_format($order->total_amount, 2) }}

@if ($order->notes)

Notes

{{ $order->notes }}

@endif
@endsection