@php $colspan = ($invoiceSetting->hsn_sac_code_show) ? 3 : 2; @endphp {{--Custom fields data--}} @if(isset($fields) && count($fields) > 0)

@lang('modules.projects.otherInfo')

@foreach($fields as $field) @endforeach
{{ 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

@endif @if (!is_null($payments))

@lang('app.menu.payments') ({{ $invoice->invoice_number }})

@forelse($payments as $key => $payment) @empty @endforelse
# @lang("modules.invoices.price") @lang("modules.invoices.paymentMethod") @lang("modules.invoices.paidOn")
{{ $key + 1 }} {{ currency_formatter($payment->amount,'', $invoice->company_id) }} {{ $invoice->currency->currency_code }} @php($method = !is_null($payment->offline_method_id) ? $payment->offlineMethod->name : $payment->gateway) {{ $method }} {{ $payment->paid_on->format($global->date_format) }}
@lang('messages.noRecordFound')
@endif