38 lines
1.5 KiB
PHP
38 lines
1.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('title') Admin Panel @endsection
|
|
|
|
@section('content')
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-8">
|
|
@if (!Auth::user()->is_Admin)
|
|
<p> You are not allowed to see this page. </p>
|
|
<a href="{{ route('home') }}"> Go somewhere nice </a>
|
|
@else
|
|
<div class="card">
|
|
<div class="card-header">Admin Panel</div>
|
|
<div class="card-body">
|
|
@if (session('status'))
|
|
<div class="alert alert-success" role="alert">
|
|
{{ session('status') }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
<div class="card-body">
|
|
<a href="{{ route('admin_users') }}"> Users </a>
|
|
<a href="{{ route('admin_subjects') }}"> Subjects </a>
|
|
<a href="{{ route('admin_rooms') }}"> Rooms </a>
|
|
<a href="{{ route('admin_classes') }}"> Classes </a>
|
|
<a href="{{ route('admin_attendances') }}"> Attendances </a>
|
|
</div>
|
|
<div class="card-body">
|
|
@yield('admin_content')
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|