@php foreach($paginator as $row): @endphp
@php endforeach; @endphp
{{ __lang('student') }} |
{{ __lang('date-taken') }} |
{{ __lang('score') }} |
{{ __lang('grade') }} |
{{__lang('actions')}} |
{{ $row->first_name }} {{ $row->last_name }} |
{{ showDate('d/M/Y',$row->created_at) }} |
{{ $row->score }}% |
@php if($row->score >= $row->passmark): @endphp
{{ __lang('passed') }}
@php else: @endphp
{{ __lang('failed') }}
@php endif; @endphp
|
|
@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'=>'test',
'action'=>'results',
'id'=>$testID
)
);
@endphp