mirror of
https://github.com/snipe/snipe-it.git
synced 2026-04-03 14:28:32 +00:00
52 lines
1.9 KiB
PHP
52 lines
1.9 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
{{ $group->name }}
|
|
@parent
|
|
@stop
|
|
|
|
@section('header_right')
|
|
<i class="fa-regular fa-2x fa-square-caret-right pull-right" id="expand-info-panel-button" data-tooltip="true" title="{{ trans('button.show_hide_info') }}"></i>
|
|
@endsection
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
<x-container columns="2">
|
|
|
|
<x-page-column class="col-md-9 main-panel">
|
|
<x-box>
|
|
<x-table.users name="groupsUsersTable" :route="route('api.users.index', ['group_id' => $group->id])"/>
|
|
</x-box>
|
|
</x-page-column>
|
|
|
|
<x-page-column class="col-md-3 hidden-print">
|
|
|
|
<x-box class="side-box expanded">
|
|
<x-info-panel :infoPanelObj="$group">
|
|
|
|
<x-slot:buttons>
|
|
<x-button :item="$group" permission="update" :route="route('groups.edit', $group->id)" class="btn-warning"/>
|
|
<x-button.delete :item="$group"/>
|
|
</x-slot:buttons>
|
|
|
|
@if (is_array($group->decodePermissions()))
|
|
@foreach ($group->decodePermissions() as $permission_name => $permission)
|
|
<li class="list-group-item">{!! ($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>
|
|
@endforeach
|
|
@else
|
|
<p>{{ trans('admin/groups/titles.no_permissions') }}</p>
|
|
@endif
|
|
|
|
</x-info-panel>
|
|
</x-box>
|
|
</x-page-column>
|
|
|
|
</x-container>
|
|
|
|
@stop
|
|
|
|
@section('moar_scripts')
|
|
@include ('partials.bootstrap-table')
|
|
@stop
|