@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')


{{ formElement($text) }}
{{ formElement($select) }}
{{ formElement($sortSelect) }}
{{ formElement($typeSelect) }}
@php foreach($paginator as $row): @endphp @php endforeach; @endphp
{{ __lang('id') }} {{ __lang('session-course') }} {{ __lang('type') }} {{ __lang('enrolled-students') }} {{ __lang('reports') }}
{{ $row->id }} {{ $row->name }} @php switch($row->type){ case 'b': echo __lang('training-online'); break; case 's': echo __lang('training-session'); break; case 'c': echo __lang('online-course'); break; } @endphp @php $session = \App\Course::find($row->id); echo $session->studentCourses()->count() @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'=>'report', 'action'=>'index', 'filter'=>$filter, 'group'=>$group, 'sort'=>$sort, 'type'=>$type ) ); @endphp
@endsection