@extends('layouts.student') @section('pageTitle',$pageTitle) @section('innerTitle',$pageTitle) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('student.dashboard')=>__lang('dashboard'), '#'=>$pageTitle ]]) @endsection @section('content')
@php foreach($paginator as $row): @endphp @php endforeach; @endphp
{{ __lang('Test') }} {{ __lang('Questions') }} {{ __lang('Minutes Allowed') }} {{ __lang('multiple-attempts-allowed') }} {{ __lang('passmark') }} {{ __lang('Actions') }}
{{ $row->name }} {{ $questionTable->getTotalQuestions($row->test_id) }} {{ empty($row->minutes)?__lang('Unlimited'):$row->minutes }} {{ boolToString($row->allow_multiple) }} {{ ($row->passmark > 0)? $row->passmark.'%':__lang('Ungraded') }} @php if(!$studentTest->hasTest($row->test_id,$id) || !empty($row->allow_multiple)): @endphp {{ __lang('Take Test') }} @php endif; @endphp @php if($studentTest->hasTest($row->test_id,$id) && $row->show_result==1): @endphp {{ __lang('Your Results') }} @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 route('student.test.index') ); @endphp
@endsection