@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.student.sessions')=>__lang('courses'), '#'=>__lang('students') ]]) @endsection @section('content')
@php foreach($paginator as $row): @endphp @php endforeach; @endphp
{{ __lang('id') }} {{ __lang('name') }} {{ __lang('classes-attended') }} {{ __lang('progress') }} {{ __lang('enrollment-code') }} {{__lang('actions')}}
{{ $row->student_id }} {{ $row->name }} {{ $row->last_name }} @php $attended= $attendanceTable->getTotalDistinctForStudentInSession($row->student_id,$id); echo $attended @endphp
@php $percent = 100 * @($attended/($totalLessons)); if($percent >=0 ){ echo $percent; } else{ echo 0; $percent = 0; } @endphp%
{{ $row->reg_code }}
@php // add at the end of the file after the table echo paginationControl( // the paginator object $paginator, // the scrolling style 'sliding', // the partial to use to render the control null, // the route to link to when a user clicks a control link array( 'route' => 'admin/default', 'controller'=>'student', 'action'=>'sessionstudents', 'id'=>$id ) ); @endphp
@endsection @section('footer') @endsection