@if(!is_null($invoice->project->client)) @lang("modules.invoices.billedTo"):

{{ ucwords($invoice->project->client->client[0]->company_name) or ucwords($invoice->project->client->name) }}

{!! nl2br($invoice->project->client->client[0]->address) !!}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client->client[0]->gst_number))
@lang('app.gstIn'): {{ $invoice->project->client->client[0]->gst_number }}
@endif @endif
@lang("modules.invoices.generatedBy"):

{{ ucwords($global->company_name) }}

@if(!is_null($settings))
{!! nl2br($global->address) !!}
{{ $global->company_phone }}
@endif @if($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))
@lang('app.gstIn'): {{ $invoiceSetting->gst_number }}
@endif

@lang("app.invoice") #{{ $invoice->invoice_number }}

@lang("app.date"): {{ $invoice->issue_date->format($global->date_format) }}
@foreach($invoice->items as $item) @if($item->type == 'item') @endif @endforeach @if($discount != 0 && $discount != '') @endif @foreach($taxes as $tax) @endforeach
# @lang("modules.invoices.item") @lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") @lang("modules.invoices.price")
{{ ++$count }}

{{ ucfirst($item->item_name) }}

{{ $item->quantity }}

{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$item->unit_price, 2, '.', '') }}

{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$item->amount, 2, '.', '') }}
      @lang("modules.invoices.subTotal") {!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$invoice->sub_total, 2, '.', '') }}
      @lang("modules.invoices.discount") -{!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$discount, 2, '.', '') }}
      {{ strtoupper($tax->item_name) }} {!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$tax->amount, 2, '.', '') }}
@lang("modules.invoices.total") {!! htmlentities($invoice->currency->currency_symbol) !!}{{ number_format((float)$invoice->total, 2, '.', '') }}

 


@lang("app.note"): Here {!! htmlentities($invoice->currency->currency_symbol) !!} refers to {!! $invoice->currency->currency_code !!}