@extends('backEnd.master') @section('title') @lang('behaviourRecords.student_behaviour_rank_report') @endsection @section('mainContent')
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'behaviour_records.student_behaviour_rank_report_search', 'method' => 'GET', 'enctype' => 'multipart/form-data']) }}

@lang('behaviourRecords.select_criteria')

@include('backEnd.common.search_criteria', [ 'div' => 'col-lg-3', 'required' => ['academic'], 'visiable' => ['academic', 'class', 'section'], ])
{{ Form::close() }}
@isset($students)

@lang('behaviourRecords.student_behaviour_rank_list')

@foreach ($students as $key => $data) @php $incident = 0; foreach ($data->incidents as $student_point) { $incident += $student_point->incident->point; } @endphp @endforeach
@lang('behaviourRecords.rank') @lang('behaviourRecords.admission_no') @lang('behaviourRecords.student_name') @lang('behaviourRecords.class')(@lang('behaviourRecords.section')) @lang('behaviourRecords.gender') @lang('behaviourRecords.phone') @lang('behaviourRecords.total_points') @lang('behaviourRecords.actions')
{{ $key + 1 }} {{ $data->admission_no }} {{ $data->first_name }} {{ $data->last_name }} @foreach ($data->studentRecords as $studentRecord) {{ $studentRecord->class->class_name }}({{ $studentRecord->section->section_name }}) @endforeach {{ $data->gender->base_setup_name }} {{ $data->mobile }} {{ $data->incidents_sum_point }} @lang('common.view')
@endisset
@endsection @include('backEnd.partials.data_table_js') @push('script') @endpush