@extends(Theme::viewName('layout')) @section('title', 'Gallery Admin') @section('breadcrumb') @endsection @section('content')

@lang('admin.default_album_permissions.title')

@lang('admin.default_album_permissions.intro')

@lang('admin.default_album_permissions.intro_2')


@lang('admin.security_groups_heading')
{{ csrf_field() }} @if (count($existing_groups) > 0)
@foreach ($existing_groups as $group) @include(Theme::viewName('partials.album_permissions'), [ 'key_id' => 'group_' . $group->id, 'object_id' => $group->id, 'title' => $group->name, 'callback' => [\App\Http\Controllers\Admin\AlbumController::class, 'doesGroupHaveDefaultPermission'], 'callback_object' => $group, 'parent_id' => 'groups-accordion' ]) @endforeach
@endif

@lang('admin.security_users_heading')
{{ csrf_field() }}
{{-- Anonymous users --}} @include(Theme::viewName('partials.album_permissions'), [ 'key_id' => 'anonymous', 'object_id' => 'anonymous', 'title' => trans('admin.anonymous_users'), 'callback' => [\App\Http\Controllers\Admin\AlbumController::class, 'doesUserHaveDefaultPermission'], 'callback_object' => null, 'parent_id' => 'users-accordion' ]) @foreach ($existing_users as $user) @include(Theme::viewName('partials.album_permissions'), [ 'key_id' => 'user_' . $user->id, 'object_id' => $user->id, 'title' => $user->name, 'callback' => [\App\Http\Controllers\Admin\AlbumController::class, 'doesUserHaveDefaultPermission'], 'callback_object' => $user, 'parent_id' => 'users-accordion' ]) @endforeach
@endsection @push('scripts') @endpush