@extends('themes.base.layout') @section('title', $album->name) @section('breadcrumb') @endsection @section('content')
@lang('admin.open_album')

{{ $album->name }}

{{ $album->description }}


{{-- Photos --}}
@if (count($photos) == 0)

@lang('admin.album_no_photos_p1')

@lang('admin.album_no_photos_p2')

@else
{{ csrf_field() }} {{ method_field('PUT') }} @foreach ($photos as $photo) @include (Theme::viewName('partials.single_photo_admin')) @endforeach

@lang('admin.select_all_album_active')

{{ $photos->links() }}
@endif
{{-- Upload --}} @include(Theme::viewName('partials.album_upload_tab')) {{-- Permissions --}}

@lang('admin.security_heading')

@lang('admin.security_text')


@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' => [$album, 'doesGroupHavePermission'], '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' => [$album, 'doesUserHavePermission'], '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' => [$album, 'doesUserHavePermission'], 'callback_object' => $user, 'parent_id' => 'users-accordion' ]) @endforeach
{{-- Settings --}}
{{ csrf_field() }} {{ method_field('PUT') }}

@lang('admin.album_basic_info_heading')

@lang('admin.album_basic_info_intro')

@if ($errors->has('name')) @endif

@lang('admin.album_appearance_heading')

@lang('admin.album_appearance_intro')


@lang('admin.save_changes_heading')

@lang('admin.save_changes_intro')

@lang('admin.danger_zone_heading')

@lang('admin.danger_zone_intro')

@endsection @push('scripts') @endpush