@php // Assuming $plan is passed from the Laravel controller $plan = $plan ?? null; if (!$plan) { echo '

No plan selected.

'; return; } $basePrice = (float)$plan['price']; $gst = round($basePrice * 0.18); $total = $basePrice + $gst; // Reusing the convertPriceBlade function defined in InvoicePage.blade.php or a global helper // For now, defining it here for self-containment, but ideally it would be a shared helper. if (!function_exists('convertPriceBlade')) { function convertPriceBlade($price) { // $currency = session('currency', 'INR'); // Assuming currency is stored in session $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

Order Summary

{{-- Plan Info --}}

{{ $plan['name'] }}

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

{{ convertPriceBlade($basePrice) }}

per month
{{-- Features List --}} @if (isset($plan['features']) && count($plan['features']) > 0) @endif
{{-- Price Breakdown --}}
Subtotal {{ convertPriceBlade($basePrice) }}
Taxes (GST 18%) {{ convertPriceBlade($gst) }}
Total {{ convertPriceBlade($total) }}
{{-- Guarantee --}}
10-day money-back guarantee