@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.test.index')=>__lang('tests'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('search-form')
@endsection @section('content')

{{ __lang('passed') }}

{{ $passed }}

{{ __lang('failed') }}

{{ $failed }}

{{ __lang('average-score') }}

{{ $average }}%


@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
@endsection @section('header') @endsection @section('footer') @endsection