2016-03-25 01:18:05 -07:00
|
|
|
@extends('layouts/default')
|
|
|
|
|
|
|
|
{{-- Page title --}}
|
|
|
|
@section('title')
|
2017-10-17 21:43:57 -07:00
|
|
|
{{ $group->name }}
|
|
|
|
@parent
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|
|
|
|
|
2017-10-17 21:43:57 -07:00
|
|
|
@section('header_right')
|
2017-12-05 18:10:35 -08:00
|
|
|
<a href="{{ route('groups.edit', ['group' => $group->id]) }}" class="btn btn-primary text-right">{{ trans('admin/groups/titles.update') }} </a>
|
2017-10-17 21:43:57 -07:00
|
|
|
<a href="{{ route('groups.index') }}" class="btn btn-default pull-right">{{ trans('general.back') }}</a>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
{{-- Page content --}}
|
|
|
|
@section('content')
|
|
|
|
|
2017-10-17 21:43:57 -07:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9">
|
|
|
|
<div class="box box-default">
|
|
|
|
<div class="box-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div class="table table-responsive">
|
|
|
|
<table
|
|
|
|
name="groups_users"
|
|
|
|
id="table-users"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-url="{{ route('api.users.index',['group_id'=> $group->id]) }}"
|
|
|
|
data-cookie="true"
|
|
|
|
data-click-to-select="true"
|
|
|
|
data-cookie-id-table="groups_usersDetailTable">
|
|
|
|
<thead>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-03-25 01:18:05 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-17 21:43:57 -07:00
|
|
|
<div class="col-md-3">
|
|
|
|
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
@foreach ($group->decodePermissions() as $permission_name => $permission)
|
|
|
|
<li>{!! ($permission == '1') ? '<i class="fa fa-check text-success"></i>' : '<i class="fa fa-times text-danger"></i>' !!} {{ e(str_replace('.', ': ', ucwords($permission_name))) }} </li>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
|
|
|
@include ('partials.bootstrap-table', [
|
|
|
|
'exportFile' => 'groups-export',
|
|
|
|
'search' => true,
|
|
|
|
'columns' => \App\Presenters\UserPresenter::dataTableLayout()
|
|
|
|
])
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|