@extends('adminlte::page') @section('title', 'Edit photo gallery') @section('content_header')

Manage photo gallery

@stop @section('content')

Reminder!

Edit gallery

@if(Session::has('statues'))

Success!

{{ Session::get('statues') }}
@endif @if (count($errors) > 0)
Whoops! There were some problems with your input.

@endif {!! Form::model($photoGallery, [ 'method' => 'PATCH', 'route' => ['photo-gallery.admin.photo-gallery.update', $photoGallery->id], 'files' => 'true' ]) !!}

Gallery Details

{!! Form::label('title', 'Gallery title') !!} {!! Form::text('title', null, array('placeholder'=>'Gallery title', 'class'=>'form-control')) !!}

{!! Html::image('images/photoGallery/'.$photoGallery->image, '', ['width'=>200]) !!}

{!! Form::label('image', 'Gallery main image') !!} {!! Form::file('image') !!}

Please review the upload instructions in 'Reminder!'

{!! Form::close() !!}
{{-- ********************* * Manage images * ********************* --}}

Gallery Images

{!! Form::open(['route'=>'photo-gallery-image.admin.photo-gallery-image.store', 'files'=>'true']) !!}
{!! Form::label('gImg', 'Project images') !!}

You can select multi images

{!! Form::file('gImg[]', ['multiple']) !!} {!! Form::hidden('decorationId', $photoGallery->id) !!}

Please review the upload instructions in 'Reminder!'

{!! Form::submit('Update', array('class'=>'btn btn-primary')) !!}
{!! Form::close() !!}

Current gallery images

{!! Form::open([ 'method' => 'delete', 'route' => 'photo-gallery-image-delete.dSelected' ]) !!}

Available actions

Delete All - {!! Form::submit('Delete Selected', ['class'=>'btn btn-danger']) !!}

@foreach($photoGallery->galImage as $galImage)
{!! Html::image('images/photoGallery/'.$galImage->image, '', ['width'=>200]) !!}
{!! Form::checkbox('delete[]', $galImage->id) !!} {!! Form::label('delete', ' ') !!}
@endforeach
{!! Form::close() !!}
{{-- ********************* Delete section ********************* --}} {{-- Project Image ********************* --}} {{--delete single image--}} @foreach($photoGallery->galImage as $galImage) @endforeach {{--delete all project images--}} @stop