35 lines
1.6 KiB
PHP
35 lines
1.6 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">Group</h4>
|
|
</div>
|
|
<div class="panel-body">
|
|
@if (Auth::user()->isAdministrator() || (Auth::user()->isModerator() AND $group->id === Auth::user()->group_id))
|
|
<form method="get">
|
|
@if (Auth::user()->isAdministrator())
|
|
<button type="button" class="btn btn-sm btn-danger pull-right" data-toggle="modal" data-target=".delete-modal" data-url="groups" data-id="{{ $group->id }}">Delete</button>
|
|
@endif
|
|
<button class="btn btn-sm btn-default pull-right" formaction="/{{ Auth::user()->getAdminPath() }}/groups/{{ $group->id }}/edit">Edit</button>
|
|
</form>
|
|
@endif
|
|
<strong>Name:</strong><br>
|
|
{{ $group->name }}
|
|
<br>
|
|
<br>
|
|
@if (Auth::user()->isAdministrator())
|
|
<strong>Enabled:</strong><br>
|
|
{{ $group->enabled }}
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
@endsection |