@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.assignment.index')=>__lang('homework'), '#'=>__lang('submissions') ]]) @endsection @section('content')

{{ __lang('passed') }}

{{ $passed }}

{{ __lang('failed') }}

{{ $failed }}

{{ __lang('average-score') }}

{{ $average }}%
@php foreach($paginator as $row): @endphp @php endforeach; @endphp
{{ __lang('student') }} {{ __lang('Submission Date') }} {{ __lang('grade') }} {{ __lang('status') }} {{ __lang('actions') }}
{{ $row->first_name.' '.$row->last_name }} {{ showDate('d/m/Y',$row->updated_at) }} @php if(!is_null($row->grade)): @endphp {{ $row->grade }}% @php endif; @endphp {{ ($row->editable==1)? __lang('ungraded'):__lang('graded') }} {{ __lang('view-entry') }}
@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'=>'assignment', 'action'=>'submissions', 'id'=>$id ) ); @endphp
@endsection