<div class="col-md-12">
	<div class="box box-solid payment_row bg-lightgray">
		@if($removable)
			<div class="box-header">
              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool remove_payment_row"><i class="fa fa-times fa-2x"></i></button>
              </div>
            </div>
        @endif

        @if(!empty($payment_line['id']))
        	{!! Form::hidden("payment[$row_index][payment_id]", $payment_line['id']); !!}
        @endif

		<div class="box-body" >
			<div class="row">
				<input type="hidden" class="payment_row_index" value="{{ $row_index}}">
				<div class="col-md-6">
					<div class="form-group">
						{!! Form::label("amount_$row_index" ,__('sale.amount') . ':*') !!}
						<div class="input-group">
							<span class="input-group-addon">
								<i class="fa fa-money"></i>
							</span>
							{!! 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')]); !!}
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						{!! Form::label("method_$row_index" , __('lang_v1.payment_method') . ':*') !!}
						<div class="input-group">
							<span class="input-group-addon">
								<i class="fa fa-money"></i>
							</span>
							{!! 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%;']); !!}
						</div>
					</div>
				</div>
				<div class="clearfix"></div>
					@include('sale_pos.partials.payment_type_details')
				<div class="col-md-12">
					<div class="form-group">
						{!! Form::label("note_$row_index", __('sale.payment_note') . ':') !!}
						{!! Form::textarea("payment[$row_index][note]", null, ['class' => 'form-control', 'rows' => 3, 'id' => "note_$row_index"]); !!}
					</div>
				</div>
			</div>
		</div>
	</div>
</div>