@if(session()->has('collections_created')) @endif @include('includes.form_errors') {!! Form::open(['method'=>'post', 'action'=>'ManageCollectionController@store', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}
{!! 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)')], 1, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::label('priority', __('Priority:')) !!} {!! Form::number('priority', 1, ['class'=>'form-control', 'placeholder'=>__('Enter priority'), 'min'=>'1']) !!}
{!! Form::label('status', __('Status:')) !!} {!! Form::select('status', [0=>__('Inactive'), 1=>__('Active')], 1, ['class'=>'form-control selectpicker', 'data-style'=>'btn-default']) !!}
{!! Form::submit(__('Add Collection'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}