@extends('mainapp::layouts.frontend.master') @section('title') {{ ___('common.Subscription Payment Invoice') }} @endsection @section('content') @php $data = session()->get('data'); @endphp

INVOICE

Invoice To

{{ @$data['to_name'] }}

{{ @$data['to_phone'] }}

{{ @$data['to_email'] }}

Invoice No: @if (@$data['invoice_no'] < 10) 00000{{ @$data['invoice_no'] }} @elseif (@$data['invoice_no'] < 100) 0000{{ @$data['invoice_no'] }} @elseif (@$data['invoice_no'] < 1000) 000{{ @$data['invoice_no'] }} @elseif (@$data['invoice_no'] < 10000) 00{{ @$data['invoice_no'] }} @else {{ @$data['invoice_no'] }} @endif

Invoice Date: {{ date('d M Y') }}

SL ITEM DESCRIPTION TOTAL
01 {{ @$data['package_name'] }}- Subscription ( {{ date('d M Y') }}- @if (@$data['package_duration'] == 1) {{ date("d M Y", strtotime("+ ". @$data['package_duration_number'] ." day")); }} @elseif (@$data['package_duration'] == 2) {{ date("d M Y", strtotime("+ ". @$data['package_duration_number'] ." month")); }} @elseif (@$data['package_duration'] == 3) {{ date("d M Y", strtotime("+ ". @$data['package_duration_number'] ." year")); }} @else Lifetime @endif ) ${{ @$data['package_amount'] }}
@php $formatter = new NumberFormatter("en", NumberFormatter::SPELLOUT); $inWords = $formatter->format(@$data['package_amount'] + @$data['previous_due']); @endphp

In word:{{ $inWords }} dollar.

Subtotal : ${{ @$data['package_amount'] }}

Prevous Due : ${{ number_format(@$data['previous_due'], 2, '.', '') }}

Paid: ${{ number_format(@$data['package_amount'] + @$data['previous_due'], 2, '.', '') }}

TOTAL : ${{ number_format(@$data['package_amount'] + @$data['previous_due'], 2, '.', '') }}

Payment Method: {{ @$data['payment_method'] ? @$data['payment_method'] : ___('common.N/A') }}

{{--
Bank Transfer
--}}
Payment Terms:

* Payment is due within 30 days from the invoice date unless otherwise agreed upon in writing

* Accepted payment methods include bank transfer, credit card, or PayPal.

Download
@endsection