atcheck/resources/views/layouts/adminpanel.blade.php

38 lines
1.5 KiB
PHP
Raw Normal View History

@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('home') }}"> Users </a>
<a href="{{ route('home') }}"> Subjects </a>
<a href="{{ route('home') }}"> Rooms </a>
<a href="{{ route('home') }}"> Classes </a>
<a href="{{ route('home') }}"> Attendances </a>
</div>
<div class="card-body">
@yield('content')
</div>
</div>
@endif
</div>
</div>
</div>
@endsection