This repository has been archived on 2021-01-24. You can view files and clone it, but cannot push or open issues or pull requests.
laravel-elearning/resources/views/admin/index.blade.php

42 lines
2.1 KiB
PHP

@extends('layouts.base')
@section('content')
<div class="container-fluid">
<div class="col-md-6 col-md-offset-3">
@include('shared.session-flash')
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">Tests</h4>
</div>
<div class="panel-body">
<form method="get">
<button formaction="/{{ Auth::user()->getAdminPath() }}/tests" class="btn btn-default">Show Tests</button>
<button formaction="/{{ Auth::user()->getAdminPath() }}/tests/new" class="btn btn-default">New Test</button>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Users</div>
<div class="panel-body">
<form method="get">
<button formaction="/{{ Auth::user()->getAdminPath() }}/users" class="btn btn-default">Show Users</button>
<button formaction="/{{ Auth::user()->getAdminPath() }}/users/new" class="btn btn-default">New User</button>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Groups</div>
<div class="panel-body">
<form method="get">
@if (Auth::user()->isAdministrator())
<button formaction="/{{ Auth::user()->getAdminPath() }}/groups" class="btn btn-default">Show Groups</button>
<button formaction="/{{ Auth::user()->getAdminPath() }}/groups/new" class="btn btn-default">New Group</button>
@else
<button formaction="/{{ Auth::user()->getAdminPath() }}/groups/{{ Auth::user()->group_id }}" class="btn btn-default">Show Group</button>
@endif
</form>
</div>
</div>
</div>
</div>
@stop