@php
$baseAmount = $payment->total_amount / 1.18;
$gstAmount = $payment->total_amount - $baseAmount;
@endphp
| Description |
Period |
Base Amount |
Total |
|
{{ $payment->month ?? 1 }} Month Plan
Technical Support and Maintenance Fees - Subscription Plan
|
{{ $payment->validity_from ? $payment->validity_from->format('d M Y') : 'N/A' }} to {{ $payment->validity_to ? $payment->validity_to->format('d M Y') : 'N/A' }} |
Rs. {{ number_format($baseAmount, 2) }} |
Rs. {{ number_format($payment->total_amount, 2) }} |
Payment Details
| Payment Method: |
Online Payment (Razorpay) |
| Transaction ID: |
{{ $payment->payment_id ?? 'N/A' }} |
| Order ID: |
{{ $payment->order_id ?? 'N/A' }} |
| Payment Date: |
{{ $payment->payment_date ? $payment->payment_date->format('d M Y, h:i A') : 'N/A' }} |
|
| Subtotal: |
Rs. {{ number_format($baseAmount, 2) }} |
| GST @ 18%: |
Rs. {{ number_format($gstAmount, 2) }} |
| GRAND TOTAL: |
Rs. {{ number_format($payment->total_amount, 2) }} |
|
@php
if (!function_exists('convertNumberToWordsInvoice')) {
function convertNumberToWordsInvoice($number) {
$ones = array(0 => '', 1 => 'One', 2 => 'Two', 3 => 'Three', 4 => 'Four', 5 => 'Five', 6 => 'Six', 7 => 'Seven', 8 => 'Eight', 9 => 'Nine', 10 => 'Ten', 11 => 'Eleven', 12 => 'Twelve', 13 => 'Thirteen', 14 => 'Fourteen', 15 => 'Fifteen', 16 => 'Sixteen', 17 => 'Seventeen', 18 => 'Eighteen', 19 => 'Nineteen');
$tens = array(2 => 'Twenty', 3 => 'Thirty', 4 => 'Forty', 5 => 'Fifty', 6 => 'Sixty', 7 => 'Seventy', 8 => 'Eighty', 9 => 'Ninety');
$number = number_format($number, 2, '.', '');
$parts = explode('.', $number);
$rupees = (int)$parts[0];
$paise = (int)$parts[1];
$words = '';
if ($rupees >= 10000000) { $crores = (int)($rupees / 10000000); $words .= convertNumberToWordsInvoice($crores) . ' Crore '; $rupees %= 10000000; }
if ($rupees >= 100000) { $lakhs = (int)($rupees / 100000); $words .= convertNumberToWordsInvoice($lakhs) . ' Lakh '; $rupees %= 100000; }
if ($rupees >= 1000) { $thousands = (int)($rupees / 1000); $words .= convertNumberToWordsInvoice($thousands) . ' Thousand '; $rupees %= 1000; }
if ($rupees >= 100) { $hundreds = (int)($rupees / 100); $words .= $ones[$hundreds] . ' Hundred '; $rupees %= 100; }
if ($rupees >= 20) { $words .= $tens[(int)($rupees / 10)] . ' '; $rupees %= 10; }
if ($rupees > 0) { $words .= $ones[$rupees] . ' '; }
$words = trim($words);
if ($words == '') { $words = 'Zero'; }
$result = 'Rupees ' . $words;
if ($paise > 0) { $paiseWords = ''; if ($paise >= 20) { $paiseWords .= $tens[(int)($paise / 10)] . ' '; $paise %= 10; } if ($paise > 0) { $paiseWords .= $ones[$paise]; } $result .= ' and ' . trim($paiseWords) . ' Paise'; }
return $result . ' Only';
}
}
$totalInWords = convertNumberToWordsInvoice($payment->total_amount);
@endphp
| Total In Words: |
{{ $totalInWords }} |
Important Notes
► This is a temporary invoice. The original invoice will be sent to your email ID within 48 hours.
► This is a computer-generated invoice and does not require a physical signature.
► Subscription is valid from {{ $payment->validity_from ? $payment->validity_from->format('d M Y') : 'N/A' }} to {{ $payment->validity_to ? $payment->validity_to->format('d M Y') : 'N/A' }}.
► GST @ 18% is applicable as per current Indian tax regulations.
► For any queries or support, please contact us at support@sportingindia.tech