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

43 lines
1.8 KiB
PHP

@extends('layouts.base')
@section('content')
@include('shared.delete-modal')
<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>Group</th>
<th>
<form method="get">
<button class="btn btn-sm btn-primary pull-right" formaction="/{{ Auth::user()->getAdminPath() }}/groups/new">Add Group</button>
</form>
</th>
</tr>
@foreach ($groups as $group)
<tr>
<td>{{ $group->id }}</td>
<td><a href="/{{ Auth::user()->getAdminPath() }}/groups/{{ $group->id }}">{{ $group->name }}</a></td>
<td>
<form method="get" class="pull-right">
<button type="button" class="btn btn-sm btn-danger pull-left" data-toggle="modal" data-target=".delete-modal" data-url="groups" data-id="{{ $group->id }}">Delete</button>
</form>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
</div>
</div>
@stop