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

{{ ucwords($invoice->project->client->name) }}

{!! nl2br($invoice->project->client->address) !!}
@elseif(!is_null($invoice->client_id))
@lang("modules.invoices.billedTo"):

{{ ucwords($invoice->clientdetails->name) }}

{!! nl2br($invoice->clientdetails->address) !!}
@endif
@lang("modules.invoices.generatedBy"):

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

@if(!is_null($settings))
{!! nl2br($global->address) !!}
{{ $global->company_phone }}
@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 @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 }}

{!! currency_position($item->unit_price, $invoice->currency->currency_symbol) !!}

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

 


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