@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('search-form')
@endsection @section('content')
@php if(GLOBAL_ACCESS): @endphp @php endif; @endphp @php foreach($paginator as $row): @endphp @php if(GLOBAL_ACCESS): @endphp @php endif; @endphp @php endforeach; @endphp
{{ __lang('id') }} {{ __lang('name') }} {{ __lang('enabled') }} {{ __lang('private') }} {{ __lang('questions') }} {{ __lang('attempts') }}{{ __lang('created-by') }}{{__lang('actions')}}
{{ $row->id }} {{ $row->name }} {{ boolToString($row->enabled) }} {{ boolToString($row->private) }} {{ $questionTable->getTotalQuestions($row->id) }} {{ $studentTestTable->getTotalForTest($row->id) }} ({{ __lang('view') }}){{ adminName($row->admin_id) }}
@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'=>'index', ) ); @endphp
@endsection