{!! Form::open(array('route' => 'accounts.monthlyreport', 'method' => 'POST', 'role' =>'form','enctype'=>'multipart/form-data', 'class' => 'needs-validation')) !!}
{{--@if (isset($payments) && $payments->count())
@isset($payments)
{!! Form::label('section', trans('Section'), ['class' => 'control-label']) !!}
{!! Form::select('section', $pluckSection , $section?? null , ['class' => 'select2 form-control','required','onchange'=>'getStudentsBySection(this.value,1)','placeholder'=>trans('Choose')]) !!}
@error('section')
{{ $message }}
@enderror
{!! Form::select('student',$pluckStudent ?? array(), $student?? null, array('id' => 'student', 'class' => 'form-control select2','required')) !!}
@error('student')
{{ $message }}
@enderror
{!! Form::text('year', $year ?? date('Y'), array('id' => 'year', 'class' => 'form-control datepicker','autocomplete' => 'off')) !!}
@error('year')
{{ $message }}
@enderror
@lang('Download ')
@endif--}}
{!! Form::close() !!}
@lang('Print Date') :
@php($section = App\Section::find($section))
{{school('name')}}
{{school('address')}}
@lang('Section')
{{$section->class->name .' - '. $section->section_number}}
@lang('Student') -
@if ($student == 'all')
@lang('All')
@else
@php($student = (new App\User)->getUser($student))
{{$student->name}}
@endif
@lang('Payment Report Year') {{$year}}
@if($payments->count())
| # | @foreach($payments as $key=> $payment) @foreach($payment as $field=> $value){{$field}} | @endforeach @break($loop->first) @endforeach@lang('Current Due') | @for($month=1;$month<=12;$month++){{date('F', mktime(0, 0, 0, $month, 10))}} | @endfor
|---|---|---|---|
| {{$loop->index +1}} | @foreach($payment as $field=> $value) @if ($field == 'Total Due')