@extends('themes.base.layout') @section('title', $album->name) @section('content')

{{ $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::close() !!}
{{ $photos->links() }}
@endif
{{-- Upload --}}

Upload single images

{!! Form::open(['route' => 'photos.store', 'method' => 'POST', 'files' => true]) !!} {!! Form::hidden('album_id', $album->id) !!}
{!! Form::file('photo[]', ['class' => 'control-label', 'multiple' => 'multiple']) !!}
{!! Form::submit(trans('forms.upload_action'), ['class' => 'btn btn-success']) !!}
{!! 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