@extends('layouts.admin') @section('page-title','') @section('breadcrumb') @include('admin.partials.crumb',[ 'crumbs'=>[ route('admin.dashboard')=>__('default.dashboard'), route('admin.survey.index')=>__lang('surveys'), '#'=>__lang('results') ]]) @endsection @section('content')
@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
@endsection @section('header') @endsection @section('footer') @endsection