@extends('layouts.app') @section('content') @php // Assuming $plan and $billing are passed from the Laravel controller $plan = $plan ?? null; $billing = $billing ?? null; if (!$plan || !$billing) { // Redirect or show an error if data is missing // For now, a simple message echo '
No invoice data found. Please go back and complete your order.
'; return; } $basePrice = (int)$plan['price']; $gst = round($basePrice * 0.18); $total = $basePrice + $gst; $invoice = [ 'number' => 'INV-' . time(), 'date' => date('M d, Y'), 'dueDate' => date('M d, Y'), 'status' => 'UNPAID', ]; // Placeholder for currency conversion. In a real app, this would be a global JS function or handled server-side. // For demonstration, let's define a simple PHP function that mimics it. function convertPriceBlade($price) { $currency = 'INR'; // Default currency for linter. In runtime, this should be handled by a proper Laravel session access. if ($currency === 'USD') { return '$' . number_format($price / 83, 2); } return '₹' . number_format($price, 2); } @endphp
{{-- Invoice Header --}}
{{ $invoice['status'] }}
Company Logo

Digital Cloud Keepers Pvt. Ltd.

Vijay Path, Mansarovar, Jaipur, India

GSTIN: 07ABCDE1234F2Z5

Email: info@dckeepers.com

Invoice

Invoice Date: {{ $invoice['date'] }}

Invoice No: {{ $invoice['number'] }}

{{-- Invoice Details --}}

Bill To:

{{ $billing['fullName'] }}

{{ $billing['email'] }}

{{ $billing['phone'] }}

{{ $billing['streetAddress'] }}, {{ $billing['city'] }}, {{ $billing['state'] }}, {{ $billing['zipCode'] }}, {{ $billing['country'] }}

Plan Details:

{{ $plan['name'] }}

{{ $plan['subtitle'] ?? 'N/A' }}

@if (isset($plan['features']) && count($plan['features']) > 0)
Included Features:
    @foreach ($plan['features'] as $feature)
  • {{ $feature }}
  • @endforeach
@endif
{{-- Invoice Table --}}
Service Price GST (18%) Total
{{ $plan['name'] }} {{ convertPriceBlade($basePrice) }} {{ convertPriceBlade($gst) }} {{ convertPriceBlade($total) }}
{{-- Transactions Section --}}

Transactions

Transaction Date Gateway Transaction ID Amount
No Related Transactions Found
Balance {{ convertPriceBlade($total) }}
{{-- Payment Method --}}

Payment Method

{{-- Online Payment --}}

Online via UPI / Card

{{-- UPI QR Code Section - Only show for INR --}}

Pay using UPI:

UPI QR Code

Scan QR code with any UPI app to pay {{ convertPriceBlade($total) }}

@php $currentCurrency = session('currency', 'INR'); @endphp {{-- International Payment Message for USD (Conditional, will require JS for dynamic currency) --}} @if ($currentCurrency === 'USD')

International Payment

Use Credit/Debit Card or International Wire Transfer

Amount: {{ convertPriceBlade($total) }}

@endif
{{-- Bank Transfer Details --}}

Bank Account Details:

Bank Name: HDFC Bank
Account/Payee Name: Site Worx Infotech
Account No.: 50200057304581
RTGS/NEFT IFSC Code: HDFC0003922
@php $currentCurrency = session('currency', 'INR'); @endphp @if ($currentCurrency === 'USD')
SWIFT Code: HDFCINBBXXX
@endif
{{-- Payment Section (Stripe integration will go here) --}}
Secure Payment Gateway

Total Amount: {{ convertPriceBlade($total) }}

Includes GST • 30-day money-back guarantee • Instant activation

{{-- Stripe Payment Button --}} {{-- Download Invoice Button --}}
{{-- Security Badges --}}
256-bit SSL Secured
PCI DSS Compliant
Bank Grade Security
{{-- Footer --}}

Thank you for your business!

Need help? Contact us at info@dckeepers.com

Invoice generated on {{ date('M d, Y H:i:s') }}
{{-- JavaScript for Stripe integration --}} @endsection