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">
|
|
|
|
|
2018-02-16 13:22:55 -08:00
|
|
|
<table
|
|
|
|
data-columns="{{ \App\Presenters\UserPresenter::dataTableLayout() }}"
|
|
|
|
data-cookie-id-table="groupsUsersTable"
|
|
|
|
data-pagination="true"
|
|
|
|
data-search="true"
|
|
|
|
data-side-pagination="server"
|
|
|
|
data-show-columns="true"
|
|
|
|
data-show-export="true"
|
|
|
|
data-show-refresh="true"
|
|
|
|
id="groupsUsersTable"
|
|
|
|
class="table table-striped snipe-table"
|
|
|
|
data-url="{{ route('api.users.index',['group_id'=> $group->id]) }}"
|
|
|
|
data-export-options='{
|
|
|
|
"fileName": "export-{{ str_slug($group->name) }}-group-users-{{ date('Y-m-d') }}",
|
|
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
|
|
}'>
|
2017-10-17 21:43:57 -07:00
|
|
|
</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">
|
|
|
|
|
2018-02-13 17:14:30 -08:00
|
|
|
@if (is_array($group->decodePermissions()))
|
2017-10-17 21:43:57 -07:00
|
|
|
<ul class="list-unstyled">
|
|
|
|
@foreach ($group->decodePermissions() as $permission_name => $permission)
|
2024-05-21 01:56:51 -07:00
|
|
|
<li>{!! ($permission == '1') ? '<i class="fas fa-check text-success" aria-hidden="true"></i><span class="sr-only">'.trans('general.yes').': </span>' : '<i class="fas fa-times text-danger" aria-hidden="true"></i><span class="sr-only">'.trans('general.no').': </span>' !!} {{ e(str_replace('.', ': ', ucwords($permission_name))) }} </li>
|
2017-10-17 21:43:57 -07:00
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</ul>
|
2018-02-13 17:14:30 -08:00
|
|
|
@else
|
2024-05-28 16:26:33 -07:00
|
|
|
<p>{{ trans('admin/groups/titles.no_permissions') }}</p>
|
2018-02-13 17:14:30 -08:00
|
|
|
@endif
|
2017-10-17 21:43:57 -07:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('moar_scripts')
|
2018-02-16 13:22:55 -08:00
|
|
|
@include ('partials.bootstrap-table')
|
2016-03-25 01:18:05 -07:00
|
|
|
@stop
|