|
Invoice #: {{ $payments->id }}
@php
$createdAt = date('M-d-Y', strtotime($payments->created_at));
$createdAt = explode('-', $createdAt);
@endphp
Created: {{ $createdAt[0] }} {{ $createdAt[1] }}, {{ $createdAt[2] }}
|
|
@if ($commonData['COMPANY_NAME'] != '')
{{ $commonData['COMPANY_NAME'] }},
{{ $commonData['COMPANY_ADDRESS'] != '' ? $commonData['COMPANY_ADDRESS'] . ',' : '' }}
{{ $commonData['COMPANY_CITY'] != '' ? $commonData['COMPANY_CITY'] . ',' : '' }}
{{ $commonData['COMPANY_STATE'] != '' ? $commonData['COMPANY_STATE'] : '' }}
{{ $commonData['COMPANY_STATE'] != '' ? $commonData['COMPANY_POSTAL_CODE'] . ',' : '' }}
{{ $commonData['COMPANY_EMAIL'] != '' ? $commonData['COMPANY_EMAIL'] : '' }}
@endif
|
@php
$customerDetails = json_decode($payments->customer, true);
@endphp
{{ $customerDetails['name'] }},
{{ $customerDetails['address'] }},
{{ $customerDetails['city'] }},
{{ $customerDetails['state'] != '' ? $customerDetails['state'] . ',' : '' }}
{{ $customerDetails['postal_code'] }}
{{ $userEmail }}
|
|
{{ __('Description') }} |
{{ __('Date') }} |
{{ __('Amount') }} |
{{ $payments->product->name }}
({{ isset($payments->product->amount_month) ? 'Monthly' : 'Yearly' }}) |
{{ $createdAt[0] }} {{ $createdAt[1] }}, {{ $createdAt[2] }} |
{{ isset($payments->product->amount_month) ? formatMoney($payments->product->amount_month, $payments->product->currency) : formatMoney($payments->product->amount_year, $payments->product->currency) }}
{{ $payments->product->currency }} |
@if ($taxAmount != 0)
|
{{ $payments->tax_rates[0]->name }} ({{ $payments->tax_rates[0]->percentage . ' %' }}
{{ $payments->tax_rates[0]->type == 0 ? 'incl.' : 'excl.' }}) |
{{ formatMoney($taxAmount, $payments->product->currency) }} {{ $payments->product->currency }}
|
@endif
@if ($payments->coupon)
|
{{ $payments->coupon->code }} ({{ $payments->coupon->percentage . '% Discount' }}) |
{{ formatMoney($discountAmt, $payments->product->currency) }}
{{ $payments->product->currency }} |
@endif
|
{{ __('Total') }}: |
{{ formatMoney($payments->amount, $payments->product->currency) }}
{{ $payments->product->currency }} |