@extends('layouts.guest-invoice') @section('title', 'Information Regarding Your Order') @section('content') @if(session()->has('success'))
@endif @if(session()->has('error'))
@endif

Invoice from {{ config('settings.app_name') }}

Print/PDF
{{ config('settings.app_name') }}

{{ config('settings.app_name') }}

{{ config('settings.address') }}

{{ config('settings.city') }}, {{ config('settings.country') }}.

Invoice No : {{ $invoice->invoice_no }}

Issued : {{ $invoice->formatted_created_at_date }}

{{ $invoice->formatted_grand_total }}

{{ $invoice->formatted_payment_status }}

{{ config('settings.phone') }} {{ config('settings.email') }}

Bill To

{{ $invoice->customer->name }}
{{ $invoice->customer->address }}
{{ $invoice->customer->email }}
@if ($invoice->billing_address)

{!! $invoice->billing_address !!}

@endif

Items

@foreach ($invoice->orders as $order)

Order ID: {{ $order->id }}

Date: {{ $order->formatted_created_at_date }}

{{ $order->billing_type->name() }} on {{ $order->sites_title }}

@foreach ($order->sites as $site)

{{ $site->pivot->live_link }} {{ $site->formatted_pivot_price }}

@endforeach

Sub Total {{ $order->formatted_sub_total }}

Discount {{ $order->formatted_discount }}

Total {{ $order->formatted_grand_total }}

@endforeach
Sub Total {{ $invoice->formatted_sub_total }}
Discount {{ $invoice->formatted_discount }}
Grand Total {{ $invoice->formatted_grand_total }}
@if ($invoice->description)

Description

{{ $invoice->description }}

@endif

Invoice Total: {{ $invoice->formatted_grand_total }}

@if ($invoice->isPaid() or $invoice->isPaymentPending())
{{ $invoice->formatted_payment_status }}
@else @if ($invoice->payment_method == \App\Enums\PaymentMethod::PADDLE && !empty($paddle_payment_link))
@elseif($invoice->isPaymentMethodPaypal())
@csrf @method('PUT')
{{--
OR
--}} {{--
--}} {{--
--}} {{-- @csrf--}} {{-- @method('PUT')--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} @elseif($invoice->isPaymentMethodStripe() && false)
@csrf @method('PUT')
@elseif($invoice->isPaymentMethodPayProGlobal())
@csrf @method('PUT')
@else

{{ $invoice->payment_method->description() }}

@endif @endif
@endsection @push('head-scripts') @if (!$invoice->is_paid) @endif @endpush @push('scripts') @if (!$invoice->is_paid) @endif @endpush