@extends('layouts.student') @section('pageTitle',$pageTitle) @section('innerTitle',$pageTitle) @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('student.dashboard')=>__lang('dashboard'), '#'=>__lang('my-submissions') ]]) @endsection @section('content')
@php foreach($paginator as $row): @endphp @php endforeach; @endphp
{{ __lang('homework') }} {{ __lang('course-session') }} {{ __lang('due-date') }} {{ __lang('submitted-on') }} {{ __lang('submission-status') }} {{ __lang('review-status') }} {{ __lang('grade') }}
{{ $row->title }} {{ $row->course_name }} {{ showDate('d/M/Y',$row->due_date) }} {{ showDate('d/M/Y',$row->updated_at) }} {!! ($row->submitted==1)? ''.__lang('submitted').'':''.__lang('draft').'' !!} {{ (is_null($row->grade))? __lang('pending'):__lang('graded') }} @php if(!is_null($row->grade)): @endphp {{ $row->grade }}% @php if($row->grade >= $row->passmark): @endphp ({{ __lang('passed') }}) @php else: @endphp ({{ __lang('failed') }}) @php endif; @endphp @php else: @endphp N/A @php endif; @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('student.assignment.submissions') ); @endphp
@endsection