@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']) !!} @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::select('bulk-action', $bulk_actions, null, ['placeholder' => trans('forms.bulk_edit_photos_placeholder'), 'id' => 'bulk-action-apply']) !!}
{!! Form::close() !!}
{{ $photos->links() }}
@endif
{{-- Upload --}}

Upload images

{!! 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() !!}

Bulk upload

{!! Form::open(['route' => 'photos.storeBulk', 'method' => 'POST', 'files' => true]) !!} {!! Form::hidden('album_id', $album->id) !!}
{!! Form::file('archive', ['class' => 'control-label']) !!}
{!! Form::submit(trans('forms.upload_action'), ['class' => 'btn btn-success']) !!}
{!! Form::close() !!}
{{-- Settings --}}
@endsection @push('scripts') @endpush