@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

{!! 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::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::file('archive', ['class' => 'control-label']) !!}
{!! Form::close() !!} @endif
{{-- Settings --}}
@endsection @push('scripts') @endpush