snipe-it/resources/views/groups/view.blade.php

71 lines
2.8 KiB
PHP
Raw Normal View History

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')
<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
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">
@if (is_array($group->decodePermissions()))
2017-10-17 21:43:57 -07:00
<ul class="list-unstyled">
@foreach ($group->decodePermissions() as $permission_name => $permission)
<li>{!! ($permission == '1') ? '<i class="fas fa-check text-success" aria-hidden="true"></i><span class="sr-only">GRANTED: </span>' : '<i class="fas fa-times text-danger" aria-hidden="true"></i><span class="sr-only">DENIED: </span>' !!} {{ e(str_replace('.', ': ', ucwords($permission_name))) }} </li>
2017-10-17 21:43:57 -07:00
@endforeach
</ul>
@else
<p>This group has no permissions.</p>
@endif
2017-10-17 21:43:57 -07:00
</div>
</div>
@stop
@section('moar_scripts')
@include ('partials.bootstrap-table')
2016-03-25 01:18:05 -07:00
@stop