@php $col_class = 'col-md-6'; if(!empty($accounts)){ $col_class = 'col-md-4'; } @endphp
{!! Form::label("amount_$row_index" ,__('sale.amount') . ':*') !!}
{!! Form::text("payment[$row_index][amount]", @num_format($payment_line['amount']), ['class' => 'form-control payment-amount input_number', 'required', 'id' => "amount_$row_index", 'placeholder' => __('sale.amount')]); !!}
{!! Form::label("method_$row_index" , __('lang_v1.payment_method') . ':*') !!}
{!! Form::select("payment[$row_index][method]", $payment_types, $payment_line['method'], ['class' => 'form-control col-md-12 payment_types_dropdown', 'required', 'id' => "method_$row_index", 'style' => 'width:100%;', 'placeholder' => __('messages.please_select')]); !!}
@if(!empty($accounts))
{!! Form::label("account_$row_index" , __('lang_v1.payment_account') . ':') !!}
{!! Form::select("payment[$row_index][account_id]", $accounts, !empty($payment_line['account_id']) ? $payment_line['account_id'] : '' , ['class' => 'form-control select2', 'id' => "account_$row_index", 'style' => 'width:100%;']); !!}
@endif
@include('sale_pos.partials.payment_type_details')
{!! Form::label("note_$row_index", __('sale.payment_note') . ':') !!} {!! Form::textarea("payment[$row_index][note]", $payment_line['note'], ['class' => 'form-control', 'rows' => 3, 'id' => "note_$row_index"]); !!}