{{ $indexNumber++ }} |
{{ Form::select('account_id[]', $accounts, $invoiceItem->account_id, ['class' => 'form-select accountId', 'required', 'placeholder'=>'Select Account', 'data-control' => 'select2']) }}
{{ Form::hidden('id[]', $invoiceItem->id) }}
|
{{ Form::text('description[]', $invoiceItem->description, ['class' => 'form-control']) }}
|
{{ Form::number('quantity[]', $invoiceItem->quantity, ['class' => 'form-control qty','required', 'type' => 'number', "min" => 1]) }}
|
{{ Form::text('price[]', number_format($invoiceItem->price), ['class' => 'form-control decimal-number price','required']) }}
|
{{-- {{ getCurrencySymbol() }}--}}
{{ number_format($invoiceItem->total) }}
|
|
@endforeach
@else
1 |
{{ Form::select('account_id[]', $accounts, null, ['class' => 'form-select accountId ','required','placeholder'=>'Select Account','data-control' => 'select2']) }}
|
{{ Form::text('description[]', null, ['class' => 'form-control']) }}
|
{{ Form::number('quantity[]', null, ['class' => 'form-control qty','required', 'type' => 'number', "min" => 1]) }}
|
{{ Form::text('price[]', null, ['class' => 'form-control decimal-number price','required']) }}
|
0.00
|
|
@endif