{!! Form::open(array('route' => 'accounts.moneyreceipt', 'method' => 'POST', 'role' =>'form','enctype'=>'multipart/form-data', 'class' => 'needs-validation')) !!}
{!! Form::close() !!}
@isset($dues)
@if ($dues->count())
{!! Form::text('date', $date ?? date('d-m-Y'), array('id' => 'date', 'class' => 'form-control datepicker','autocomplete' => 'off', "onchange='myFunction(this)'")) !!}
@error('date')
{{ trans($message) }}
@enderror
{{-- --}}
{!! Form::text('studentId', ($student_code?? $_GET['studentId'] ?? null), array('id' => 'studentId', 'required', 'class' => 'form-control','autocomplete' => 'off')) !!}
@error('studentId')
{{ $message }}
@enderror
@foreach($dues as $due)
@break($loop->first)
@endforeach
@lang('Student Name') : {{$due->name}}
@lang('Student Id') : {{$due->student_code}}
@lang('Class') : {{ \App\Myclass::findOrFail($due->class_id)->name }}
@lang('Section') : {{\App\Section::findOrFail($due->section_id)->section_number}}
{!! Form::open(['route' => ['accounts.moneyreceived',$student_code], 'method' => 'post','id'=>'moneyreceivedForm']) !!}
{!! Form::hidden('date', $date ?? date('d-m-Y'), array( 'id'=>'serdate' ,'class' => 'form-control','autocomplete' => 'off')) !!}
@error('date')
{{ trans($message) }}
@enderror
| @lang('Created Date') | @lang('Sector Name') | @lang('Payable Amount') | @lang('Paid Amount') | @lang('Waiver') | ||
|---|---|---|---|---|---|---|
| {{date("F d, Y",strtotime($due->created_at))}} | {{$due->account_sectors}} | {{$due->due}} | {!! Form::number('amount[]', $due->due, ['class' => 'form-control removeDisable width-100 ','id'=>'amount'.$due->id,'disabled'=>'true','oninput'=>'total()', 'max' => $due->due]) !!} |
|
||
| @lang('Total Amount') | {{number_format($total,2)}} | |||||
| @lang('Received Amount') | 0 | |||||
| @lang('Notes') | ||||||
| @lang('Ledger') | @error('ledger_id') {{ $message }} @enderror | |||||
{!! Form::button(trans('Submit'), ['class' => btnClass(),'onclick'=>'confirmSubmit()']) !!}
{!! Form::close() !!}