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/groups.blade.php

46 lines
2.1 KiB
PHP

@extends('layouts.base')
@section('content')
<div class="container-fluid">
<div class="row">
<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">Groups</h4>
</div>
<div class="panel-body">
<table class="table">
<tr>
<th>#</th>
<th colspan="2">Group</th>
</tr>
<tr>
<td></td>
<td>
@if (request()->path() === "admin/tests" OR request()->path() === "mod/tests")
<a href="/{{ Auth::user()->getAdminPath() }}/tests/all">Show All</a>
@elseif (request()->path() == "admin/users")
<a href="/{{ Auth::user()->getAdminPath() }}/users/all">Show All</a>
@endif
</td>
</tr>
@foreach ($groups as $group)
<tr>
<td>{{ $group->id }}</td>
<td>
@if (request()->path() == "admin/tests" OR request()->path() === "mod/tests")
<a href="/{{ Auth::user()->getAdminPath() }}/tests/group/{{ $group->id }}">{{ $group->name }}</a>
@elseif (request()->path() == "admin/users")
<a href="/{{ Auth::user()->getAdminPath() }}/users/group/{{ $group->id }}">{{ $group->name }}</a>
@endif
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div>
</div>
@stop