{{-- modal to collect specefic fee--}}
{!! Form::open(['method' => 'post', 'id' => 'form1', 'class' => 'form-horizontal form-groups']) !!}
{{Form::hidden('admission_id', null, ['id' => 'admission_id'])}} {{Form::hidden('student_id', null, ['id' => 'student_id'])}} {{ Form::hidden('fees_config_details_id', null, ['id' => 'fees_config_details_id']) }} {{ Form::hidden('fees_bill_no', null, ['id' => 'fees_bill_no']) }} {{ Form::hidden('config_data', null, ['id' => 'config_data']) }} {{-- date --}}
{!! Form::label('date', 'Date:
*
', ['class' => 'col-sm-3 control-label'], false) !!}
{!! Form::text('date', $branch_campus_active_date ?? date('d-m-Y') , ['class' => 'form-control','id' => 'date','readonly','autocomplete'=>'off']) !!}
{{-- amount --}}
{!! Form::label('amount', 'Amount:
*
', ['class' => 'col-sm-3 control-label'], false) !!}
{!! Form::text('amount', null, ['class' => 'form-control', 'id' => 'amount', 'placeholder' => 'Enter fees amount', 'readonly' => true]) !!}
{{-- fees discount --}}
{!! Form::label('fees_discount_id', 'Fees Discount: ', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::select('fees_discount_id', $feesDiscounts ?? [], null, ['class' => 'form-control', 'id' => 'fees_discount_id', 'placeholder' => 'Select Fees Discount']) !!}
{{-- discount_percentage, discount_amount --}}
{!! Form::label('', 'Discount (%/TK) & Fine(TK)', ['class' => 'col-sm-3 control-label hidden'])!!} {{-- discount_percentage --}}
{!! Form::number('', null, ['class' => 'form-control', 'id' => 'discount_percentage', 'step' => '0.01', 'placeholder' => 'Enter discount percentage', 'min' => '0']) !!}
{{-- discount_amount --}}
{!! Form::number('discount_amount', null, ['class' => 'form-control', 'id' => 'discount_amount', 'step' => '0.01', 'placeholder' => 'Enter discount amount', 'min' => '0']) !!}
{!! Form::label('fine', 'Fine', ['class' => 'col-sm-3 control-label'])!!} {{-- fine --}}
{!! Form::hidden('fees_fine_details_id', null, ['id' => 'fees_fine_details_id']) !!} {!! Form::number('fine', null, ['class' => 'form-control', 'id' => 'fine', 'step' => '0.01', 'placeholder' => 'Enter fine amount', 'min' => '0', 'readonly']) !!}
{{-- gross_amount = amount + fine - discount_amount --}}
{!! Form::label('gross_amount', 'Gross Amount:
*
', ['class' => 'col-sm-3 control-label'], false) !!}
{!! Form::number('gross_amount', 0, ['class' => 'form-control', 'id' => 'gross_amount', 'step' => '0.01', 'placeholder' => 'Gross Amount', 'min' => '0', 'readonly'=>true]) !!}
{{-- Paid Amount --}}
{!! Form::label('paid_amount', 'Paid Amount:
*
', ['class' => 'col-sm-3 control-label'], false) !!}
{!! Form::number('paid_amount', 0, ['class' => 'form-control', 'id' => 'paid_amount', 'step' => '0.01', 'placeholder' => 'Paid Amount', 'min' => '0', 'readonly'=>true]) !!}
{{-- pay_amount --}}
{!! Form::label('pay_amount', 'Pay Amount:
*
', ['class' => 'col-sm-3 control-label'], false) !!}
{!! Form::number('pay_amount', 0, ['class' => 'form-control', 'id' => 'pay_amount', 'step' => '0.01', 'placeholder' => 'Enter amount', 'min' => '0', 'readonly']) !!}
{{-- due_amount --}}
{!! Form::label('due_amount', 'Due Amount:
*
', ['class' => 'col-sm-3 control-label'], false) !!}
{!! Form::number('', 0, ['class' => 'form-control', 'id' => 'due_amount', 'step' => '0.01', 'placeholder' => 'Due Amount', 'min' => '0', 'readonly'=>true]) !!}
{{-- payment_method --}}
{!! Form::label('payment_method', 'Payment Method:
*
', ['class' => 'col-sm-3 control-label'],false) !!}
@foreach($paymentMethods as $id => $paymentMethod)
{{$paymentMethod}}
@endforeach
{!! Form::label('note', 'Note:', ['class' => 'col-sm-3 control-label']) !!}
{!! Form::textarea('note', null, ['class' => 'form-control', 'id' => 'note', 'rows' => 3]) !!}
{!! Form::close() !!}
{{-- Form Sumission Script --}}