@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')
@if($paginator->count()==0) {{ __lang('no-results') }} @endif @foreach($paginator as $course) @php $course = \App\Course::find($course->id); @endphp
@if(!empty($course->picture))
@else
@endif

{{ $course->name }}

{{ limitLength($course->short_description,300) }}
@foreach($course->admins()->limit(4)->get() as $admin)
image
{{ $admin->user->role->name }}
@section('footer') @parent @endsection @endforeach
@endforeach
@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('sessions') ); @endphp
{{ __lang('filter') }}
{{ formElement($text) }}
{{ formElement($sortSelect) }}
@if(false)
@php foreach($paginator as $row): @endphp
@php if(!empty($row->picture)): @endphp @php else: @endphp @php endif; @endphp

{{ $row->session_name }}

{{ limitLength($row->short_description,300) }}

@php if(setting('general_show_fee')==1): @endphp @php endif; @endphp @php if(setting('general_show_fee')==1): @endphp @php endif; @endphp
{{ __lang('start-date') }} {{ __lang('end-date') }} {{ __lang('enrollment-closes') }}{{ __lang('fee') }}
{{ showDate('d/M/Y',$row->session_date) }} {{ showDate('d/M/Y',$row->session_end_date) }} {{ showDate('d/M/Y',$row->enrollment_closes) }} @php if(empty($row->payment_required)): @endphp {{ __lang('free') }} @php else: @endphp {{ price($row->amount) }} @php endif; @endphp

@php $session = \Application\Entity\Session::find($row->session_id); @endphp
@php foreach($session->sessionInstructors as $instructor): @endphp @php endforeach; @endphp
{{ __lang('details') }}
@php foreach($session->sessionInstructors as $instructor): @endphp @php endforeach; @endphp @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 array( 'route' => 'courses', ) ); @endphp

{{ __lang('filter') }}

{{ formElement($text) }}
{{ formElement($sortSelect) }}
@endif @endsection