@if(userCan('SetTraining-list')==0) @php header("Location: " . URL::to('errors.403'), true, 302); exit(); @endphp @endphp @endif @extends('layouts.default') @php $pageTitle = 'Training List'; @endphp @section('title',$pageTitle) @section('PageHead') @if ( session('massage') ) × Success! {{session('massage')}} @endif @if ( session('error') ) × Not Success! {{session('error')}} @endif @if (Session::has('errors')) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @php $Name= app('request')->input('name'); $CategoryId= app('request')->input('category_id'); $appPerPage= app('request')->input('perPage'); @endphp {{$pageTitle}} Dashboard @if(userCan('setting-list')>0) Settings @endif @if(userCan('SetTraining-list')>0) {{$pageTitle}} @endif @if(userCan('SetTraining-create')>0) Add New @endif @stop @section('content') Per Page @php $curentperPagesnum = isset($_GET['perPage'])?$_GET['perPage']:10; @endphp @php $perPages = array(10,15,20,50,100,500,1000);@endphp Select All @foreach( $perPages as $key =>$perPagesnum ) {{$perPagesnum}} @endforeach Training Category {!!TrainingCategoryType(@$CategoryId)!!} {{paginationHeaderInfo($datas)}} {{$datas->appends([ 'name' => $Name, 'category_id' => $CategoryId, 'perPage' => $appPerPage ])->links('pagination::bootstrap-4')}} Code Training Name Training Category Duration Action @foreach($datas as $key=>$data) {{@$data->code}} {{@$data->name}} {{@$data->training_type->name}} {{@$data->duration}} {!!TrainingDurationType(@$data->duration_type,1)!!} @if(userCan('TrainingCategory-edit')>0) @endif @endforeach {{paginationHeaderInfo($datas)}} {{$datas->appends([ 'name' => $Name, 'category_id' => $CategoryId, 'perPage' => $appPerPage ])->links('pagination::bootstrap-4')}} @stop