{{ Form::model($debt,[
'route' => $debt->exists ? ['debts.update', $debt->id] : 'debts.store',
'method' => $debt->exists ? 'PUT' : 'POST'
]) }}
{{ Form::label('invoice_no', trans('debts.invoice_no')) }}
{{ Form::text('invoice_no', null, [
'class' => "form-control",
'required' => "required",
'placeholder' => trans('debts.invoice_no')
]) }}
{{ Form::label('total', trans('debts.total')) }}
{{ Form::number('total', null, [
'class' => "form-control",
'step' => "any",
"required" => "required",
'placeholder' => trans('debts.total')
]) }}
{{ Form::label('pay', trans('debts.paid')) }}
{{ Form::number('pay', null, [
'class' => "form-control",
'step' => 'any',
'placeholder' => trans('debts.paid')
]) }}
{{ Form::label('comment', trans('debts.note')) }}
{{ Form::textarea('comment', null, [
'class' => "form-control",
'rows' => "2",
'placeholder' => trans('debts.note')
]) }}