@extends('backEnd.master') @section('title') @lang('reports.student_fine_report') @endsection @section('mainContent')

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'student_fine_reports', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'id' => 'search_student']) }}
@if ($errors->has('date_from')) {{ $errors->first('date_from') }} @endif
@if ($errors->has('date_to')) {{ $errors->first('date_to') }} @endif
{{ Form::close() }}
@if(isset($fees_payments))

@lang('reports.student_fine_report')

@php $grand_amount = 0; $grand_total = 0; $grand_discount = 0; $grand_fine = 0; $total = 0; @endphp @foreach($fees_payments as $fees_payment) @php $total = 0; @endphp @endforeach
@lang('common.date') @lang('common.name') @lang('common.class') @lang('fees.fees_type') @lang('fees.fine')
{{$fees_payment->payment_date != ""? dateConvert($fees_payment->payment_date):''}} {{$fees_payment->studentInfo !=""?$fees_payment->studentInfo->full_name:""}} @if($fees_payment->studentInfo!="" && $fees_payment->studentInfo->class!="") {{$fees_payment->studentInfo->class->class_name}} @endif {{$fees_payment->feesType!=""?$fees_payment->feesType->name:""}} @php $total = $total + $fees_payment->fine; $grand_fine = $grand_fine + $fees_payment->fine; echo $fees_payment->fine; @endphp
@lang('accounts.grand_total') {{$grand_fine}}
@endif
@endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.date_picker_css_js')