@extends('admin.layouts.master') @section('title', 'Real Invoice') @section('css') @endsection @section('content')

Invoice Details

Address

{{ $invoice->company->address }}

{{--

Zip-code: {{ $invoice->company->zip_code }}

--}}
Legal Registration No:{{ $invoice->company->reg_no }}
Email:{{ $invoice->company->email }}
Website: {{ $invoice->company->website }}
Contact No: {{ $invoice->company->contact_no }}

Invoice No

#{{ $invoice->invoice_no }}

Date

{{ $invoice->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->grand_total }}
Billing Address
@if ($invoice->order->billingAddress)

{{ $invoice->order->billingAddress->name }}

{{ $invoice->order->billingAddress->address_line_1 }}

@if ($invoice->order->billingAddress->address_line_2)

{{ $invoice->order->billingAddress->address_line_2 }}

@endif

Phone: +{{ $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
@if ($invoice->order->shippingAddress)
Shipping Address

{{ $invoice->order->shippingAddress->name }}

{{ $invoice->order->shippingAddress->address_line_1 }}

@if ($invoice->order->shippingAddress->address_line_2)

{{ $invoice->order->shippingAddress->address_line_2 }}

@endif

Phone: +{{ $invoice->order->shippingAddress->phone }}

City: {{ $invoice->order->shippingAddress->city }}

Post Code: {{ $invoice->order->shippingAddress->post_code }}

@endif @if ($invoice->order->pickupAddress)
Pickup Address
@php $pickup_address = $invoice->order->pickupAddress; @endphp

{{ $pickup_address->name }}

{{ $pickup_address->phone }}

{{ $pickup_address->note }}

@endif
@foreach($invoice->order->orderDetails as $index => $orderDetail) @endforeach
# Product Details Rate Quantity Amount
{{ $index + 1 }} {{ $orderDetail->product->name }}

{{ $orderDetail->product->specification }}

£{{ $orderDetail->price }} {{ $orderDetail->quantity }} £{{ $orderDetail->total_amount }}
{{-- --}} @if ($invoice->order->vat_tax_amount != null && $invoice->order->vat_tax_amount != 0) {{ dd($invoice->order->vat_tax_percentage) }} @endif
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 Details:

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 }}

Chat messages
{{-- //refresh button use bi icons--}} @if ($invoice->status != 'real' && $invoice->order->payment_status != 'paid') @endif
Loading...
@if ($invoice->status != 'real' && $invoice->order->payment_status != 'paid') @endif
@endsection @section('js') @endsection