@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 {!! Form::open(['route' => ['photos.updateBulk', $album->id], 'method' => 'PUT', 'id' => 'bulk-modify-form']) !!} @foreach ($photos as $photo) @include (Theme::viewName('partials.single_photo_admin')) @endforeach

@lang('admin.select_all_album_active')

{!! Form::label('bulk-action', trans('forms.bulk_edit_photos_label'), ['class' => 'control-label']) !!}

{!! Form::hidden('new-album-id', $album->id) !!} {!! Form::select('bulk-action', $bulk_actions, null, ['placeholder' => trans('forms.bulk_edit_photos_placeholder'), 'id' => 'bulk-action-apply', 'data-bind' => 'value: bulkModifyMethod, enable: photoIDs().length > 0']) !!}
{!! Form::close() !!}
{{ $photos->links() }}
@endif
{{-- Upload --}}
@if (!$is_upload_enabled)

@lang('admin.upload_disabled_heading')

@lang('admin.upload_disabled_text')

@else

@lang('admin.upload_single_file_heading')

@lang('admin.upload_single_file_text')

@lang('admin.upload_single_file_text2', [ 'file_size' => sprintf('%s%s', round($file_upload_limit, 2), trans('global.units.megabytes')), 'max_upload_size' => sprintf('%s%s', round($max_post_limit, 2), trans('global.units.megabytes')) ])

{!! Form::open(['route' => 'photos.store', 'method' => 'POST', 'files' => true, 'id' => 'single-upload-form']) !!} {!! Form::hidden('album_id', $album->id) !!} {!! Form::hidden('queue_token', $queue_token) !!}
{!! Form::file('photo[]', ['class' => 'control-label', 'multiple' => 'multiple', 'id' => 'single-upload-files']) !!}
{!! Form::close() !!}

@lang('admin.is_uploading')

@lang('admin.upload_file_number_failed')

@lang('admin.upload_file_failed_continue')

@lang('forms.continue_action')


@lang('admin.upload_bulk_heading')

@lang('admin.upload_bulk_text')

@lang('admin.upload_bulk_text2', [ 'max_upload_size' => sprintf('%s%s', round($max_post_limit_bulk, 2), trans('global.units.megabytes')) ])

{!! Form::open(['route' => 'photos.storeBulk', 'method' => 'POST', 'files' => true, 'id' => 'bulk-upload-form']) !!} {!! Form::hidden('album_id', $album->id) !!} {!! Form::hidden('queue_token', $queue_token) !!}
{!! Form::file('archive', ['class' => 'control-label']) !!}
{!! Form::close() !!} @endif
{{-- 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 --}}
{!! Form::model($album, ['route' => ['albums.update', $album->id], 'method' => 'PUT']) !!}

@lang('admin.album_basic_info_heading')

@lang('admin.album_basic_info_intro')

{!! Form::label('name', trans('forms.name_label'), ['class' => 'control-label']) !!} {!! Form::text('name', old('name'), ['class' => 'form-control']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('description', trans('forms.description_label'), ['class' => 'control-label']) !!} {!! Form::textarea('description', old('description'), ['class' => 'form-control']) !!}

@lang('admin.album_appearance_heading')

@lang('admin.album_appearance_intro')

{!! Form::select('default_view', $allowed_views, old('default_view'), ['class' => 'form-control']) !!}

@lang('admin.save_changes_heading')

@lang('admin.save_changes_intro')

@lang('admin.danger_zone_heading')

@lang('admin.danger_zone_intro')

@lang('forms.delete_action')

{!! Form::close() !!}
@endsection @push('scripts') @endpush