@extends('admin.layouts.admin') @section('title', 'Schools') @section('content')
@if(auth()->user()->hasRole('administrator'))
Add New School
@endif
{{ Form::open(['route'=>['admin.schools'],'method' => 'get','class'=>'form-horizontal form-label-left']) }}
{{ Form::close() }}
@foreach($schools as $school) @endforeach
@sortablelink('school_name', 'School Name',['page' => $schools->currentPage()]) Email County Created At Updated At Actions
{{ $school->school_name }} {{ $school->user->email }} {{$school->county}} {{ $school->created_at }} {{ $school->updated_at }}
{{ $schools->links() }}
@endsection