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

@lang('behaviourRecords.select_criteria')

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

@lang('behaviourRecords.student_incident_list')

@foreach ($student_records as $key => $data) @php $incident = 0; foreach ($data->student->incidents as $student_point) { $incident += $student_point->incident->point; } @endphp @endforeach
@lang('behaviourRecords.admission_no') @lang('behaviourRecords.student_name') @lang('behaviourRecords.class')(@lang('behaviourRecords.section')) @lang('behaviourRecords.gender') @lang('behaviourRecords.phone') @lang('behaviourRecords.total_incidents') @lang('behaviourRecords.total_points') @lang('behaviourRecords.actions')
{{ $data->student->admission_no }} {{ $data->student->first_name }} {{ $data->student->last_name }} {{ $data->class->class_name }}({{ $data->section->section_name }}) {{ $data->student->gender->base_setup_name }} {{ $data->student->mobile }} {{ $data->incidents_count }} {{ $data->incidents_sum_point ? $data->incidents_sum_point : 0 }} @lang('common.view')
@endisset
@endsection @include('backEnd.partials.data_table_js')