@extends(adminLayout()) @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), '#'=>isset($pageTitle)?$pageTitle:'' ]]) @endsection @section('content')
@csrf


@php foreach($paginator as $row): @endphp @php endforeach; @endphp
{{ __lang('id') }} {{ __lang('session-course') }} {{ __lang('start-date') }} {{ __lang('end-date') }} {{ __lang('total-attended') }} {{ __lang('total-enrolled') }} {{ __lang('status') }}
{{ $row->id }} {{ $row->name }} {{ showDate('d/m/Y',$row->start_date) }} {{ showDate('d/m/Y',$row->end_date) }} {{ $attendanceTable->getTotalStudentsForSession($row->id) }} {{ $studentSessionTable->getTotalForSession($row->id) }} {{ ($row->enabled!=1)?__lang('disabled'):__lang('enabled') }}
@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'=>'download', 'action'=>'browsesessions', 'id'=>$id ) ); @endphp

{{ __lang('assigned-sessions') }}

@php foreach($assigned as $row): @endphp @php endforeach; @endphp
{{ __lang('id') }} {{ __lang('session-course-name') }} {{ __lang('start-date') }} {{ __lang('end-date') }} {{ __lang('total-attended') }} {{ __lang('total-enrolled') }} {{ __lang('status') }}
{{ $row->id }} {{ $row->name }} {{ showDate('d/m/Y',$row->start_date) }} {{ showDate('d/m/Y',$row->end_date) }} {{ $attendanceTable->getTotalStudentsForSession($row->id) }} {{ $studentSessionTable->getTotalForSession($row->id) }} {{ ($row->enabled!=1)?__lang('disabled'):__lang('enabled') }}
@endsection