@extends('admin.layouts.master') @section('title', 'Real Invoice') @section('css') @endsection @section('content')
{{ $invoice->company->address }}
{{--Zip-code: {{ $invoice->company->zip_code }}
--}}Invoice No
Date
Payment Status
@php // $paymentStatus = 'pending','credit','paid' $paymentStatus = $invoice->order->payment_status; $color = ''; if ($paymentStatus == 'pending') { $color = 'warning'; } elseif ($paymentStatus == 'credit') { $color = 'primary'; } elseif ($paymentStatus == 'paid') { $color = 'success'; } @endphp {{ ucwords($paymentStatus) }}Total Amount
{{ $invoice->order->billingAddress->name }}
{{ $invoice->order->billingAddress->address_line_1 }}
@if ($invoice->order->billingAddress->address_line_2){{ $invoice->order->billingAddress->address_line_2 }}
@endifPhone: +{{ $invoice->order->billingAddress->phone }}
City: {{ $invoice->order->billingAddress->city }}
Post Code: {{ $invoice->order->billingAddress->post_code }}
@elseif ($invoice->order->same_as_pickup_address)Same as pickup address
@elseif ($invoice->order->same_as_shipping_address)Same as shipping address
@endif{{ $invoice->order->shippingAddress->name }}
{{ $invoice->order->shippingAddress->address_line_1 }}
@if ($invoice->order->shippingAddress->address_line_2){{ $invoice->order->shippingAddress->address_line_2 }}
@endifPhone: +{{ $invoice->order->shippingAddress->phone }}
City: {{ $invoice->order->shippingAddress->city }}
Post Code: {{ $invoice->order->shippingAddress->post_code }}
@endif @if ($invoice->order->pickupAddress){{ $pickup_address->name }}
{{ $pickup_address->phone }}
{{ $pickup_address->note }}
@endif# | Product Details | Rate | Quantity | Amount |
---|---|---|---|---|
{{ $index + 1 }} |
{{ $orderDetail->product->name }}
{{ $orderDetail->product->specification }} |
£{{ $orderDetail->price }} | {{ $orderDetail->quantity }} | £{{ $orderDetail->total_amount }} |
Items Sub Total | £{{ $invoice->order->total_amount }} |
Estimated Tax (12.5%) | £{{ $invoice->order->estimated_tax }} |
Discount | - £{{ $invoice->order->discount }} |
Vat Tax ({{ $invoice->order->vat_tax_percentage }}%) | +£{{ $invoice->order->vat_tax_amount }} |
Shipping Charge | £{{ $invoice->order->shipping_charges }} |
Total Amount | £{{ $invoice->order->grand_total }} |
---|
Payment Method: {{ $invoice->order->payment_method == 'Stripe' ? 'Payment before Delivery' : 'Payment after Delivery' }}
Payment Status: @php // $paymentStatus = 'pending','credit','paid' $paymentStatus = $invoice->order->payment_status; $color = ''; if ($paymentStatus == 'pending') { $color = 'warning'; } elseif ($paymentStatus == 'credit') { $color = 'primary'; } elseif ($paymentStatus == 'paid') { $color = 'success'; } @endphp {{ ucwords($paymentStatus) }}
{{--Card Holder: {{ $invoice->order->card_holder_name }}
Card Number: xxxx xxxx xxxx {{ substr($invoice->order->card_number, -4) }}
--}}Total Amount: £{{ $invoice->order->currency }} {{ $invoice->order->grand_total }}
NOTES:{{ $invoice->notes }}