/home/mip/mip/app/Modules/Client/Views/product/includes/form.blade.php
<input type="hidden" name="_token" value="{{ csrf_token() }}">
	<div class="row">
        <div class="col-md-7">
            <div class="col-md-12">
                <div class="form-group {{ ($errors->has('name') ? 'has-error':'') }}">
                    <label class="control-label col-md-3">Product Name: <i class="required">*</i></label>
                    <div class="col-md-9">
                        {!! Form::text('name', null , ['class'=>'form-control', 'placeholder'=>'Enter Product Name', 'autocomplete'=>'off']) !!}
                        {!! $errors->first('name', '<span class="text-red">:message</span>') !!}
                    </div>
                </div>
                <div class="form-group {{ ($errors->has('category_id') ? 'has-error':'') }}">
                    <label class="control-label col-md-3">Category: <i class="required">*</i></label>
                    <div class="col-md-9">
                        <div class="input-group">
                           {!! Form::select('category_id',  $category , null ,  ['id'=>'selectCategory', 'class'=>'form-control', 'placeholder'=>'-- Select Category']) !!}
                           <span class="input-group-btn">
                                <button class="btn btn-primary btn-flat" type="button" data-toggle="tooltip" title="Add Category" style="cursor:pointer" onclick="doModalAddCategory();"><i class="fa fa-plus-circle"></i></button>
                           </span>
                        </div>
                    </div>
                </div>
                <div class="form-group {{ ($errors->has('brand_id') ? 'has-error':'') }}">
                    <label class="control-label col-md-3">Brand: <i class="required">*</i></label>
                    <div class="col-md-9">
                        <div class="input-group">
                           {!! Form::select('brand_id',  $brand , null ,  ['id'=>'selectBrand', 'class'=>'form-control', 'placeholder'=>'-- Select Brand']) !!}
                           <span class="input-group-btn">
                                <button class="btn btn-primary btn-flat" type="button" data-toggle="tooltip" title="Add Brand" style="cursor:pointer" onclick="doModalAddBrand();"><i class="fa fa-plus-circle"></i></button>
                                {!! $errors->first('brand_id', '<span class="text-red">:message</span>') !!}
                           </span>
                        </div>
                    </div>
                </div>
                <div class="form-group {{ ($errors->has('price') ? 'has-error':'') }}">
                    <label class="control-label col-md-3">Price:</label>
                    <div class="col-md-9">
                        {!! Form::text('price', null , ['class'=>'form-control', 'placeholder'=>'Enter price', 'autocomplete'=>'off']) !!}
                        {!! $errors->first('price', '<span class="text-red">:message</span>') !!}
                    </div>
                </div>
                <div class="form-group {{ $errors->has('details') ? ' has-error' : '' }}">
                    <label class="control-label col-md-3">Details: <i class="required">*</i></label>
                    <div class="col-md-9">
                        {!! Form::textarea('details', null , ['class'=>'form-control wysihtml5', 'placeholder'=>'Details here...', 'autocomplete'=>'off']) !!}
                        {!! $errors->first('details', '<span class="text-red">:message</span>') !!}
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-5">
            <div class="col-md-12">
                <div class="panel-group" id="accordion">
                    <div class="panel panel-default" id="panel1">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" data-target="#collapseOne" style="cursor: pointer;">Product Image
                                </a>
                            </h4>
                        </div>
                        <div id="collapseOne" class="panel-collapse collapse in">
                            <div class="panel-body">
                            @if(isset($product->image))
                                <img src="{{ get_link('products/'.$product->image) }}" id="productImagePreview" alt="Uploaded Image Preview" width="365px" height="290px"/>
                                <br><br>
                                <div class="form-group"> 
                                    <div class="col-md-8"> 
                                        {{ Form::file('image', ['id' => 'image']) }}
                                    </div>
                                </div>
                            @else
                                <img src="" id="productImagePreview" alt="Uploaded Image Preview" width="365px" height="290px"/>
                                <br><br>
                                <div class="form-group">
                                    <div class="col-md-8"> 
                                        {{ Form::file('image', ['id' => 'image']) }}
                                    </div>
                                </div>
                            @endif
                            </div>
                            <div class="panel-body">
                                <div class="form-group">
                                    <label for="posting_from" class="col-sm-2 control-label">Year</label>
                                    <div class="col-sm-10">
                                        {!! Form::text('year', null , ['class'=>'form-control', 'placeholder'=>'Enter year', 'autocomplete'=>'off', 'data-focus' => 'true']) !!}
                                        {!! $errors->first('year', '<span class="text-red">:message</span>') !!}
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="status" class="col-sm-2 control-label">Status</label>
                                    <div class="col-sm-10">
                                        {!! Form::select('status', $status, null, ['class' => 'form-control']) !!}
                                        {!! $errors->first('status', '<span class="text-red">:message</span>') !!}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>