2019-11-30 21:32:42 +01:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
2019-12-06 22:34:25 +01:00
|
|
|
@section('title') Panel admina @endsection
|
2019-11-30 21:32:42 +01:00
|
|
|
|
|
|
|
@section('content')
|
2019-12-01 19:31:49 +01:00
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-12">
|
|
|
|
@if (!Auth::user()->is_Admin)
|
2019-12-06 22:34:25 +01:00
|
|
|
<p> Nie możesz przejść na tę stronę. </p>
|
|
|
|
<a href="{{ route('home') }}"> Powrót na Stronę Główną </a>
|
2019-12-01 19:31:49 +01:00
|
|
|
@else
|
|
|
|
<div class="card">
|
2019-12-06 22:34:25 +01:00
|
|
|
<div class="card-header">Panel admina</div>
|
2019-12-01 19:31:49 +01:00
|
|
|
<div class="card-body">
|
|
|
|
@if (session('status'))
|
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
|
{{ session('status') }}
|
|
|
|
</div>
|
|
|
|
@endif
|
2019-11-30 21:32:42 +01:00
|
|
|
</div>
|
2019-12-01 19:31:49 +01:00
|
|
|
<div class="card-body">
|
2019-12-06 22:34:25 +01:00
|
|
|
<a href="{{ route('admin_users') }}" class="btn btn-primary"> Prowadzący </a>
|
|
|
|
<a href="{{ route('admin_subjects') }}" class="btn btn-primary"> Przedmioty </a>
|
|
|
|
<a href="{{ route('admin_rooms') }}" class="btn btn-primary"> Sale </a>
|
|
|
|
<a href="{{ route('admin_classes') }}" class="btn btn-primary"> Zajęcia </a>
|
|
|
|
<a href="{{ route('admin_attendances') }}" class="btn btn-primary"> Obecności </a>
|
|
|
|
<a href="{{ route('admin_test_connection') }}" class="btn btn-primary"> Test requesta </a>
|
2019-12-01 19:31:49 +01:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
@yield('admin_content')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2019-11-30 21:32:42 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|