{!! Form::open(['method' => 'PUT', 'url' => (isset($categories) ? '/admin/category-homepage-sections/' : '/admin/homepage-sections/').$homePageSection->section_id]) !!}
@if(isset($categories))
{!! Form::label('Category Name') !!}
{!! Form::select('category_name',$categories, $homePageSection->category_id, ['class' => 'form-control', 'placeholder' => 'Enter category name']) !!}
@if ($errors->has('category_name')){!! $errors->first('section_name') !!}@endif
@endif
{!! Form::label('Section Name') !!}
{!! Form::text('section_name', $homePageSection->section_name, ['class' => 'form-control', 'placeholder' => 'Enter section name']) !!}
@if ($errors->has('section_name')){!! $errors->first('section_name') !!}@endif
{!! Form::label('Category Link') !!}
{!! Form::text('category_link', $homePageSection->category_link, ['class' => 'form-control', 'placeholder' => 'Enter Category Link']) !!}
@if ($errors->has('category_link')){!! $errors->first('category_link') !!}@endif
{!! Form::label('Section Position') !!}
@if ($errors->has('section_position')){!! $errors->first('section_position') !!}@endif
{!! Form::label('Status') !!}
{!! Form::select('section_is_exist', [1 => 'Active', 0 => 'Inactive'], isset($homePageSection->section_is_exist) ? $homePageSection->section_is_exist : null, ['class' => 'form-control']) !!}
@for($i = 1; $i <=36; $i++ )
@if( ($i%$products_per_row)==1 )
@if($i>1)