General Information
{!! Form::label('parent_id', 'Parent Category:') !!}
{!! Form::hidden('parent_id', null, ['id' => 'parent_id']) !!}
{!! Form::label('name', 'Category Name:') !!} {!! Form::text('name', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter category name ...', 'onblur' => 'ajax_request();']) !!}
{!! Form::label('show_in_menu', 'Show in Menu:') !!}
{!! Form::label('is_main', 'Show in Main Categories Section:') !!}
{!! Form::label('is_featured', 'Show in Featured Categories Section:') !!}
{!! Form::label('is_all', 'Show in All Instruments Section:') !!}
{!! Form::label('is_canonical', 'Apply Canonical Tag:') !!}
{!! Form::label('canonical_url', 'Canonical URL:') !!} {!! Form::text('canonical_url', null,['class'=>'form-control', 'placeholder'=>'Enter Canonical URL or Leave Blank to Use Default ...']) !!}
{!! Form::label('do_index', 'Index:') !!}
{!! Form::label('show_prices', 'Show Prices to Visitors:') !!}
{!! Form::label('short_description', 'Short Description:') !!} {!! Form::textarea('short_description', null,['class'=>'form-control ckeditor', 'placeholder'=>'Short Description ...', 'rows'=>'2']) !!}
{!! Form::label('description', 'Description:') !!} {!! Form::textarea('description', null,['class'=>'form-control ckeditor', 'placeholder'=>'Description ...', 'rows'=>'3']) !!}
{!! Form::label('image', 'Picture:') !!} {!! Form::file('image', ['class'=>'form-control', 'placeholder'=>'Category Image ...']) !!}

Only JPG or PNG Images, Size not more than 600 x 600 in width and height

@if($data['p_heading'] == 'Update Category' && $data['category']->image != '')

Click here to see uploaded picture

@endif
{!! Form::label('image_main', 'Picture for Main Category Section:') !!} {!! Form::file('image_main', ['class'=>'form-control', 'placeholder'=>'Category Image ...']) !!}

Only JPG or PNG Images, Size not more than 350 x 220 in width and height

@if($data['p_heading'] == 'Update Category' && $data['category']->image_main != '')

Click here to see uploaded picture

@endif
{!! Form::label('banner_id', 'Banner:') !!} {!! Form::select('banner_id', $data['banners'], null, ['class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
{!! Form::label('banner_image', 'Banner Image:') !!} {!! Form::file('banner_image', ['class'=>'form-control', 'placeholder'=>'Category Banner Image ...']) !!} @if($data['p_heading'] == 'Update Category' && $data['category']->banner_image != '')

Click here to see uploaded banner image

@endif
{!! Form::label('video_link', 'Video ID:') !!} {!! Form::text('video_link', null,['class'=>'form-control', 'placeholder'=>'Copy/paste Video ID ...']) !!} The ID of YouTube or Vimeo Video
{!! Form::label('', 'Video Site:') !!}
{!! Form::label('slug', 'Slug:') !!} {!! Form::text('slug', null, ['class'=>'form-control', 'required', 'placeholder'=>'Enter slug ...']) !!} @if($data['cmd'] == 'edit') @endif
{!! Form::label('meta_title', 'Meta Title:') !!} {!! Form::text('meta_title', null,['class'=>'form-control', 'placeholder'=>'Meta Title ...']) !!}
{!! Form::label('meta_keywords', 'Meta Keywords:') !!} {!! Form::textarea('meta_keywords', null,['class'=>'form-control', 'placeholder'=>'Meta Keywords ...', 'rows'=>'3']) !!}
{!! Form::label('meta_description', 'Meta Description:') !!} {!! Form::textarea('meta_description', null,['class'=>'form-control', 'placeholder'=>'Meta Description ...', 'rows'=>'3']) !!}
{!! Form::label('display_mode', 'Display Mode:') !!} {!! Form::select('display_mode', \App\Models\Category::$display_mode, @$data['display_mode'], ['class'=>'form-control', 'required']) !!}
{!! Form::label('listing_style', 'Listing Style:') !!} {!! Form::select('listing_style', \App\Models\Category::$listing_style, @$data['listing_style'], ['class'=>'form-control', 'required']) !!}
{!! Form::label('position', 'Display Position:') !!} {!! Form::text('position', null,['class'=>'form-control', 'placeholder'=>'Display Position ...']) !!}
{!! Form::label('', 'Status:') !!}
{!! Form::hidden('cmd', 'slug') !!} {!! Form::hidden('table', 'category') !!} @if($data['cmd'] == 'edit') @push('after-scripts') @endpush @endif @push('after-styles') @endpush @push('after-scripts') @endpush