@extends('themes.base.layout') @section('title', trans('admin.edit_group_title', ['group_name' => $group->name])) @section('breadcrumb') @endsection @section('content')

@yield('title')

@lang('admin.edit_group_intro')


{{ csrf_field() }} {{ method_field('PUT') }}
{{-- Nav tabs --}} {{-- Tab panes --}}
{{-- Details --}}
@if ($errors->has('name')) @endif
{{-- Users --}}
@if ($group->users()->count() > 0)

@lang('admin.group_users_message', ['group_name' => $group->name])

@else

@lang('admin.group_no_users_message')

@endif
{{-- Permissions --}}
@php $callback = [$group, 'hasAdminPermission']; $callback_object = $group; $key_id = 'group_' . $group->id; $object_id = $group->id @endphp @include(Theme::viewName('partials.permission_checkbox'), [ 'permission' => Theme::getPermission($all_permissions, 'admin', 'access') ]) @include(Theme::viewName('partials.permission_checkbox'), [ 'permission' => Theme::getPermission($all_permissions, 'admin', 'configure') ]) @include(Theme::viewName('partials.permission_checkbox'), [ 'permission' => Theme::getPermission($all_permissions, 'admin', 'manage-albums') ])
@lang('forms.cancel_action')
@endsection