@extends('admin.layouts.main') @section('content')

Gallery Management

Add Gallery


{!! Form::open(['method' => 'POST', 'route' => ['gallery.store'], 'enctype'=>'multipart/form-data', 'id'=>'galleryAddForm']) !!}
@foreach($messageArr as $message) @if(session()->has($message))
{{ session()->get($message) }}
@endif @endforeach
Fields marked as (*) are Mandatory
{{ Form::label('c_id','Category *') }}
@if($errors->has('c_id')) {{ $errors->first('c_id') }} @endif
{{ Form::label('sub_cat_id','Sub Category *') }}
@if($errors->has('sub_cat_id')) {{ $errors->first('sub_cat_id') }} @endif
{{ Form::label('collection_id','Collection *') }}
@if($errors->has('collection_id')) {{ $errors->first('collection_id') }} @endif
{{ Form::label('title','Title *') }}
{{ Form::text('title','',['class'=>'form-control','placeholder'=>'Enter title','autocomplete'=>'off'],old('title'))}} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::label('tags','Tags *') }}
{{ Form::text('tags','',['class'=>'form-control','placeholder'=>'Enter tags','autocomplete'=>'off','data-role'=>'tagsinput'],old('tags'))}} @if($errors->has('tags')) {{ $errors->first('tags') }} @endif
{{ Form::label('image','Image') }} {{"Please select image with lessthan or equal 700 X 700 Dimension"}}
{{ Form::file('image', ['id'=>'catImage','class' => 'form-control', "accept"=>"image/gif,image/jpeg,image/jpg,image/png"],old('image'))}} @if($errors->has('image')) {{ $errors->first('image') }} @endif

Cancel
{!! Form::close() !!}
@stop @section('footer_script') {{ Html::script('admin_theme/js/gallery.js') }} @stop