@if(session()->has('collections_updated')) @endif @include('includes.form_errors')
@lang('Location:') @if($collection->location) {{$collection->location->name}} @else @lang('None') @endif

{!! Form::model($collection, ['method'=>'patch', 'action'=>['ManageCollectionController@update', $collection->id], 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!} @if($collection->photo) Collection
@endif
{!! Form::label('heading', __('Heading:')) !!} {!! Form::text('heading', null, ['class'=>'form-control', 'placeholder'=>__('Enter collections heading'), '']) !!}
{!! Form::label('title', __('Title / Alt Image Text:')) !!} {!! Form::text('title', null, ['class'=>'form-control', 'placeholder'=>__('Enter collections title'), '']) !!}
{!! Form::label('photo', __('Choose Collection Image'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('photo',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-info").html(files[0].name)']) !!} @lang('No image chosen')
{!! Form::label('link', __('URL Link:')) !!} {!! Form::text('link', null, ['class'=>'form-control', 'placeholder'=>__('Enter URL link')]) !!}
{!! Form::label('position', __('Show in Home Page:')) !!} {!! Form::select('position', [null=>__('None'), 'Large Image'=>__('Large Image (866*562)'), 'Small Image'=>__('Small Image (416*562)')], $collection->position, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('priority', __('Priority:')) !!} {!! Form::number('priority', null, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1']) !!}
{!! Form::label('status', __('Status:')) !!} {!! Form::select('status', [0=>__('Inactive'), 1=>__('Active')], $collection->is_active, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Update'), ['class'=>'btn btn-primary col-xs-6 col-sm-6 pull-left', 'name'=>'submit_button']) !!}
{!! Form::close() !!}