@lang('app.invoice')

@lang('modules.invoices.billedTo'):
{{ $company->company_name }}
{!! nl2br($company->address) !!}
@lang('modules.invoices.billedFrom'):
{{ $globalInvoiceSetting->billing_name }}
@if($superadmin->company_phone)
{{ $superadmin->company_phone }}
@endif
{!! nl2br($globalInvoiceSetting->billing_address) !!}
@if(!is_null($globalInvoiceSetting->billing_tax_name))
{{ $globalInvoiceSetting->billing_tax_name }}: {{ $globalInvoiceSetting->billing_tax_id }}
@endif

# {{ $invoice->invoice_number }}

@lang('superadmin.issue_date'): {{ !is_null($invoice->pay_date) ? $invoice->pay_date->translatedFormat($global->date_format) : $invoice->created_at->translatedFormat($global->date_format)}}
@if ($globalInvoiceSetting->authorised_signatory && $globalInvoiceSetting->authorised_signatory_signature) @endif
# @lang("app.description") @lang("app.date") @lang("app.amount") ({!! htmlentities($invoice->currency->currency_code) !!})
1

{{ $invoice->package->name }} @if($invoice->package->default != 'trial') - @lang('superadmin.'.$invoice->company->package_type) @endif

{{ $invoice->pay_date?->format($global->date_format) }} - {{ $invoice->next_pay_date?->format($global->date_format) }}

@if(!is_null($invoice->currency)){!! htmlentities($invoice->currency->currency_code) !!}@else ₹ @endif{{ number_format((float)$invoice->total, 2, '.', '') }}
@lang('modules.invoices.subTotal') @if(!is_null($invoice->currency)){!! htmlentities($invoice->currency->currency_code) !!}@else ₹ @endif{{ number_format((float)$invoice->total, 2, '.', '') }}
@lang('modules.invoices.total') @if(!is_null($invoice->currency)){!! htmlentities($invoice->currency->currency_code) !!}@else ₹ @endif{{ number_format((float)$invoice->total, 2, '.', '') }}
{{ $global->company_name }}
@lang('modules.invoiceSettings.authorisedSignatory')

@lang('modules.invoiceSettings.invoiceTerms')
{!! nl2br($globalInvoiceSetting->invoice_terms) !!}