@extends('admin.template.master') @section('stylesheets') {!! Html::style('assets/admin/bower_components/select2/dist/css/select2.min.css') !!} @endsection @section('title')

@if(isset($categories)) Category @endif Home Page Section insert and update @if(isset($categories)) Category @endif Home Page Product

@endsection @section('main-content')

Edit

{!! 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::hidden('name_show', $homePageSection->name_show, ['id' => 'name_show']) !!}
{!! 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)
@endif
@endif
{!! Form::hidden('product_id[]', ($key || $key===0) ? $p_id[$key] : null , ['id' => 'product_id_'.$i]) !!} {!! Form::hidden('position[]', $i, ['id' => 'position_'.$i]) !!}
@endfor
{{--
--}} {{--
--}} {{--
--}} {{--

Removed Product

--}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--@for($i = 1; $i<=5; $i++)--}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{--@endfor--}} {{----}} {{--
#PositionPrevious ProductID
{!! $i !!}{!! $i !!}{!! 'Product Name' !!}{!! 'ID: 33.25.165' !!}
--}} {{--
--}} {{--
--}} {{--
--}} {!! Form::close() !!}
@endsection @section('javascripts') {!! Html::script('assets/admin/bower_components/select2/dist/js/select2.full.min.js') !!} @endsection