{{ ucwords($company->company_name) }}
{!! nl2br($company->address) !!}
{{ $company->company_phone }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))
@lang('app.gstIn'): {{ $invoiceSetting->gst_number }}
@endif
{{ $invoiceSetting->invoice_prefix }}
{{ $invoice->original_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) }}
{{ ucwords($invoice->project->client->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
{{ $invoice->project->client->email }}
@if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client) && !is_null($invoice->project->client->gst_number))
@lang('app.gstIn'): {{ $invoice->project->client->gst_number }}
@endif
@endif
@elseif(!is_null($invoice->client_id))
@if(!is_null($invoice->withoutGlobalScopeCompanyClient))
@lang('modules.invoices.billedTo'):
{{ ucwords($invoice->withoutGlobalScopeCompanyClient->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->withoutGlobalScopeCompanyClient->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
# |
@lang("modules.invoices.item") |
@if($invoiceSetting->hsn_sac_code_show)
@lang('modules.invoices.hsnSacCode') |
@endif
@lang("modules.invoices.qty") |
@lang("modules.invoices.unitPrice") ({!! htmlentities($invoice->currency->currency_code) !!}) |
@lang("modules.invoices.price") ({!! htmlentities($invoice->currency->currency_code) !!}) |
@foreach($invoice->items as $item)
@if($item->type == 'item')
{{ ++$count }} |
{{ ucfirst($item->item_name) }} |
@if($invoiceSetting->hsn_sac_code_show)
{{ $item->hsn_sac_code ?? '--' }} |
@endif
{{ $item->quantity }} |
{{ currency_formatter($item->unit_price,'', $invoice->company_id) }} |
{{ currency_formatter($item->amount,'', $invoice->company_id) }} |
@if(!is_null($item->item_summary))
|
hsn_sac_code_show) colspan="4" @else colspan="3" @endif style="padding: 0!important;">
@if(!is_null($item->item_summary))
{!! ($item->item_summary) !!}
@endif
|
|
@endif
@endif
@endforeach
@lang("modules.invoices.subTotal"): |
{{ currency_formatter($invoice->sub_total,'', $invoice->company_id) }} |
@if($discount != 0 && $discount != '')
@lang("modules.invoices.discount"): |
-{{ currency_formatter($discount,'', $invoice->company_id) }} |
@endif
@foreach($taxes as $key=>$tax)
{{ strtoupper($key) }}: |
{{ currency_formatter($tax,'', $invoice->company_id) }} |
@endforeach
@lang("modules.invoices.total"): |
{{ currency_formatter($invoice->total,'', $invoice->company_id)}} |
@if ($invoice->credit_notes()->count() > 0)
@lang('modules.invoices.appliedCredits'): |
{{ currency_formatter($invoice->appliedCredits(),'', $invoice->company_id) }}
|
@endif
@lang("modules.invoices.total") @lang("modules.invoices.paid"): |
{{ currency_formatter($invoice->amountPaid(),'', $invoice->company_id) }} |
@lang("modules.invoices.total") @lang("modules.invoices.due"): |
{{ currency_formatter($invoice->amountDue(),'', $invoice->company_id) }} |
@lang('app.menu.issues') @lang('app.date'): {{ $invoice->issue_date->format($company->date_format) }}
@if($invoice->status == 'unpaid')
@lang('app.dueDate'): {{ $invoice->due_date->format($company->date_format) }}
@endif
@lang('app.status'): {{ __('app.'.$invoice->status) }}
@if($creditNote)
@lang('app.credit-note'): {{ $creditNote->cn_number }}
@endif
{!! nl2br($invoice->note) !!}
{!! nl2br($invoiceSetting->invoice_terms) !!}
@lang('app.thanks')!
{{--Custom fields data--}}
@if(isset($fields) && count($fields) > 0)
@lang('modules.projects.otherInfo')
@foreach($fields as $field)
{{ ucfirst($field->label) }}
@if( $field->type == 'text')
{{$invoice->custom_fields_data['field_'.$field->id] ?? '-'}}
@elseif($field->type == 'password')
{{$invoice->custom_fields_data['field_'.$field->id] ?? '-'}}
@elseif($field->type == 'number')
{{$invoice->custom_fields_data['field_'.$field->id] ?? '-'}}
@elseif($field->type == 'textarea')
{{$invoice->custom_fields_data['field_'.$field->id] ?? '-'}}
@elseif($field->type == 'radio')
{{ !is_null($invoice->custom_fields_data['field_'.$field->id]) ? $invoice->custom_fields_data['field_'.$field->id] : '-' }}
@elseif($field->type == 'select')
{{ (!is_null($invoice->custom_fields_data['field_'.$field->id]) && $invoice->custom_fields_data['field_'.$field->id] != '') ? $field->values[$invoice->custom_fields_data['field_'.$field->id]] : '-' }}
@elseif($field->type == 'checkbox')
{{ !is_null($invoice->custom_fields_data['field_'.$field->id]) ? $field->values[$invoice->custom_fields_data['field_'.$field->id]] : '-' }}
@elseif($field->type == 'date')
{{ !is_null($invoice->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($invoice->custom_fields_data['field_'.$field->id])->format($global->date_format) : '--'}}
@endif
|
@endforeach
@endif
@if(!is_null($payments))
@lang('modules.invoices.recentPayments')
# |
@lang("modules.payments.amount") |
@lang("modules.invoices.paymentMethod") |
@lang("modules.invoices.paidOn") |
@forelse($payments as $key => $payment)
{{ $key+1 }} |
{!! currency_formatter($payment->amount, $invoice->currency->currency_symbol, $invoice->company_id) !!} |
@php($method = (!is_null($payment->offline_method_id)? $payment->offlineMethod->name : $payment->gateway))
{{ $method }}
|
{{ $payment->paid_on->format($global->date_format) }} |
@empty
@endforelse
@endif