@php foreach($paginator as $row): @endphp
@php endforeach; @endphp
{{ __lang('student') }} |
{{ __lang('date-taken') }} |
{{__lang('actions')}} |
@php if(!empty($row->student_id) && \App\Student::find($row->student_id)): @endphp
@php $student = \App\Student::find($row->student_id) @endphp
{{ $student->user->name }} {{ $student->user->last_name }}
@php else: @endphp
{{ __lang('anonymous') }}
@php endif; @endphp
|
{{ showDate('d/M/Y',$row->created_at) }} |
|
@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'=>'survey',
'action'=>'results',
'id'=>$row->id
)
);
@endphp