@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 if($row->type=='c'): @endphp @php $type='course'; @endphp @php else: @endphp @php $type='session'; @endphp @php endif; @endphp @php $course = \App\Course::find($row->id); @endphp
@if(!empty($row->picture))
@else
@endif

{{ $row->name }}

{{ limitLength($course->short_description,300) }}
@foreach($course->admins()->limit(4)->get() as $admin)
image
{{ $admin->user->role->name }}
@section('footer') @parent @endsection @endforeach
@php endforeach; @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('courses') ); @endphp

@if($subCategories || $parent) @endif
{{ __lang('Filter') }}
{{ formElement($text) }}
{{ formElement($sortSelect) }}
@endsection