atcheck/resources/views/layouts/adminpanel.blade.php
2019-12-01 19:31:49 +01:00

36 lines
1.5 KiB
PHP

@extends('layouts.app')
@section('title') Admin Panel @endsection
@section('content')
<div class="row justify-content-center">
<div class="col-md-12">
@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') }}" class="btn btn-primary"> Users </a>
<a href="{{ route('admin_subjects') }}" class="btn btn-primary"> Subjects </a>
<a href="{{ route('admin_rooms') }}" class="btn btn-primary"> Rooms </a>
<a href="{{ route('admin_classes') }}" class="btn btn-primary"> Classes </a>
<a href="{{ route('admin_attendances') }}" class="btn btn-primary"> Attendances </a>
</div>
<div class="card-body">
@yield('admin_content')
</div>
</div>
@endif
</div>
</div>
@endsection