{{ ucwords($global->company_name) }} @if ($invoice->address)
{!! nl2br($invoice->address->address) !!}
@endif
{{ $global->company_phone }}
@if($invoiceSetting->show_gst == 'yes')
{{ $invoice->address->tax_name }}: {{ $invoice->address->tax_number }}
@endif
@if (empty($invoice->order_id) && $invoice->status === 'unpaid' && $invoice->due_date->year > 1) @endif @if($creditNote) @endif
@lang('modules.invoices.invoiceDate'): {{ $invoice->issue_date->format($global->date_format) }}
@lang('app.dueDate'): {{ $invoice->due_date->format($global->date_format) }}
@lang('app.status'): {{ ucwords($invoice->status) }}
@lang('app.credit-note') {{ $creditNote->cn_number }}
{{ $invoice->invoice_number }}
@if(!is_null($invoice->project) && !is_null($invoice->project->client))
@if(!is_null($invoice->project->client)) @lang('modules.invoices.billedTo')
{{ ucwords($invoice->project->client->name) }}
@if($invoice->project->client->clientDetails)
{{ ucwords($invoice->project->client->clientDetails->company_name) }}
@lang('app.address')
{!! nl2br($invoice->project->clientdetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress')
{!! nl2br($invoice->project->clientdetails->shipping_address) !!}
@endif @endif
{{ $invoice->project->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client->clientDetails) && !is_null($invoice->project->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->project->client->clientDetails->gst_number }}
@endif @endif
@elseif(!is_null($invoice->client_id))
@if(!is_null($invoice->client)) @lang('modules.invoices.billedTo'):
{{ ucwords($invoice->client->name) }}
@if($invoice->clientdetails)
{{ ucwords($invoice->clientdetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->clientdetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->clientdetails->shipping_address) !!}
@endif @endif
{{ $invoice->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->clientdetails) && !is_null($invoice->clientdetails->gst_number))
@lang('app.gstIn'): {{ $invoice->clientdetails->gst_number }}
@endif @endif
@endif @if(is_null($invoice->project) && !is_null($invoice->estimate) && !is_null($invoice->estimate->client))
@if(!is_null($invoice->estimate->client)) @lang('modules.invoices.billedTo'):
{{ ucwords($invoice->estimate->client->name) }}
{{ ucwords($invoice->estimate->client->clientDetails->company_name) }}
@lang('app.address') :
{!! nl2br($invoice->estimate->client->clientDetails->address) !!}
@if ($invoice->show_shipping_address === 'yes')
@lang('app.shippingAddress') :
{!! nl2br($invoice->estimate->client->clientDetails->shipping_address) !!}
@endif
{{ $invoice->estimate->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->estimate->client->clientDetails->gst_number))
@lang('app.gstIn'): {{ $invoice->estimate->client->clientDetails->gst_number }}
@endif @endif
@endif
@if($invoiceSetting->hsn_sac_code_show) @endif @foreach($invoice->items as $item) @if($item->type == 'item') @if($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach
# @lang("modules.invoices.item")@lang("app.hsnSac")@lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") @lang("modules.invoices.tax") @lang("modules.invoices.price") ({!! htmlentities($invoice->currency->currency_code) !!})
{{ ++$count }} {{ ucfirst($item->item_name) }} @if(!is_null($item->item_summary))

{!! nl2br(strip_tags($item->item_summary)) !!}

@endif @if ($item->invoiceItemImage)

@endif
{{ $item->hsn_sac_code ? $item->hsn_sac_code : '--' }}{{ $item->quantity }} {{ currency_formatter($item->unit_price, '') }} {{ $item->tax_list }} {{ currency_formatter($item->amount, '') }}
@if($discount != 0 && $discount != '') @endif @foreach($taxes as $key=>$tax) @endforeach @if ($invoice->creditNotes()->count() > 0) @endif
@lang("modules.invoices.subTotal"): {{ currency_formatter($invoice->sub_total, 2, '') }}
@lang("modules.invoices.discount"): -{{ currency_formatter($discount, 2, '') }}
{{ strtoupper($key) }}: {{ currency_formatter($tax, 2, '') }}
@lang("modules.invoices.total"): {{ currency_formatter($invoice->total, 2, '') }}
@lang('modules.invoices.appliedCredits'): {{ currency_formatter($invoice->appliedCredits(), '') }}
@lang("modules.invoices.total") @lang("modules.invoices.paid"): {{ currency_formatter($invoice->getPaidAmount(), 2, '') }}
@lang("modules.invoices.total") @lang("modules.invoices.due"): {{ currency_formatter($invoice->amountDue(), '') }} {{ $invoice->currency->currency_code }}
@if(!is_null($invoice->note))
{!! nl2br($invoice->note) !!}
@endif
{!! nl2br($invoiceSetting->invoice_terms) !!}
@if (isset($taxes) && invoice_setting()->tax_calculation_msg == 1)

@if ($invoice->calculate_tax == 'after_discount') @lang('messages.calculateTaxAfterDiscount') @else @lang('messages.calculateTaxBeforeDiscount') @endif

@endif @if (count($payments) > 0)

@lang('app.menu.payments')

@forelse($payments as $key => $payment) @empty @endforelse
# @lang("modules.payments.amount") @lang("modules.invoices.paymentMethod") @lang("modules.invoices.paidOn")
{{ $key+1 }} {{ number_format((float)$payment->amount, 2, '.', '') }} {!! $invoice->currency->currency_code !!} @php $method = '--'; if(!is_null($payment->offline_method_id)) { $method = $payment->offlineMethod->name; } elseif(isset($payment->gateway)){ $method = $payment->gateway; } @endphp {{ $method }} {{ $payment->paid_on->format($global->date_format) }}
@endif