43 lines
1.8 KiB
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 |