{!! Html::style('js/fileinput/fileinput.css') !!} {!! Html::style('js/fileinput/themes/explorer/theme.css') !!} {!! Html::script('js/fileinput/plugins/sortable.min.js') !!} {!! Html::script('js/fileinput/fileinput.js') !!} {!! Html::script('js/fileinput/themes/explorer/theme.js') !!} {!! Html::script('js/ckeditor/ckeditor.js') !!} {!! Html::script('js/cke_config.js') !!} {{-- --}}
{!! Form::label("startDate", "Start Date", ['class' => 'col-sm-2 control-label','for'=>'startDate']) !!}
{!! Form::label("endDate", "End Date", ['class' => 'col-sm-2 control-label','for'=>'endDate']) !!}
{!! Form::label("status", "Status", ['class' => 'col-sm-2 control-label','for'=>'status']) !!}
@if (isset($action_page) && $action_page=="view") @if (isset($products->status)) @if ($products->status=="Y") {!! Form::checkbox('status', 'Y', true, ['data-render' => 'switchery','data-theme'=>'primary','data-disabled'=>'true']); !!} @else {!! Form::checkbox('status', 'Y', false, ['data-render' => 'switchery','data-theme'=>'primary','data-disabled'=>'true']); !!} @endif @else {!! Form::checkbox('status', 'Y', true, ['data-render' => 'switchery','data-theme'=>'primary','data-disabled'=>'true']); !!} @endif @else @if (isset($products->status)) @if ($products->status=="Y") {!! Form::checkbox('status', 'Y', true, ['data-render' => 'switchery','data-theme'=>'primary']); !!} @else {!! Form::checkbox('status', 'Y', false, ['data-render' => 'switchery','data-theme'=>'primary']); !!} @endif @else {!! Form::checkbox('status', 'Y', true, ['data-render' => 'switchery','data-theme'=>'primary']); !!} @endif @endif
{!! Form::label("order_by", "Order", ['class' => 'col-sm-2 control-label','for'=>'order_by']) !!}
@if (isset($action_page) && $action_page=="view") {!! Form::text("order_by", null, ['class' => 'form-control','placeholder'=>"0",'readonly'=>true]) !!} @else {!! Form::text("order_by", $arr_data["order_by"], ['class' => 'form-control','placeholder'=>"0",'readonly'=>true]) !!} @endif
{{-- thumb --}} @if (isset($products->thumb_th)) @if ($products->thumb_th!="") @if (file_exists(config('config.config_pathUpload').'/products/'.$pathDate.'/'.$products->thumb_th))

@if (isset($action_page) && $action_page!="view") Remove @endif
@endif @endif @endif
{!! Form::label("thumb_th", "Thumb", ['class' => 'col-sm-2 control-label','for'=>'thumb_th']) !!}
{!! Form::file('thumb_th', ['class' => 'form-control','accept'=>"image/jpeg,image/png,image/gif","disabled"=>@$arr_data['disabled_data']]) !!}
{{-- thumb --}} {{-- logo --}} @if (isset($products->logo_th)) @if ($products->logo_th!="") @if (file_exists(config('config.config_pathUpload').'/products/'.$pathDate.'/'.$products->logo_th))

@if (isset($action_page) && $action_page!="view") Remove @endif
@endif @endif @endif
{!! Form::label("logo_th", "Logo", ['class' => 'col-sm-2 control-label','for'=>'logo_th']) !!}
{!! Form::file('logo_th', ['class' => 'form-control','accept'=>"image/jpeg,image/png,image/gif","disabled"=>@$arr_data['disabled_data']]) !!}
{{-- logo --}}
{!! HTML::decode(Form::label("title_th", "ชื่อ *", ['class' => 'col-sm-2 control-label','for'=>'title_th'])) !!}
{!! Form::text("title_th", null, ['class' =>'form-control','placeholder'=>"",'id'=>'title_th',"isRequired"=>"กรุณาใส่ชื่อภาษาไทย","disabled"=>@$arr_data['disabled_data']]) !!}
{!! Form::label("content_th", "รายละเอียด", ['class' => 'col-sm-2 control-label','for'=>'content_th']) !!}
{!! Form::textarea("content_th", null, ['class' =>'form-control class_ckeditor','size' => '50x7','placeholder'=>"",'id'=>'content_th',"disabled"=>@$arr_data['disabled_data']]) !!}
@if (isset($products->gallery_th) && $products->gallery_th!="") @foreach ($products->gallery_th as $product)
your image




@endforeach @endif
{{-- Thumb --}} @if (isset($products->thumb_en)) @if ($products->thumb_en!="") @if (file_exists(config('config.config_pathUpload').'/products/'.$pathDate.'/'.$products->thumb_en))

@if (isset($action_page) && $action_page!="view") Remove @endif
@endif @endif @endif
{!! Form::label("thumb_en", "Thumb", ['class' => 'col-sm-2 control-label','for'=>'thumb_en']) !!}
{!! Form::file('thumb_en', ['class' => 'form-control','accept'=>"image/jpeg,image/png,image/gif","disabled"=>@$arr_data['disabled_data']]) !!}
{{-- Thumb --}} {{-- logo --}} @if (isset($products->logo_en)) @if ($products->logo_en!="") @if (file_exists(config('config.config_pathUpload').'/products/'.$pathDate.'/'.$products->logo_en))

@if (isset($action_page) && $action_page!="view") Remove @endif
@endif @endif @endif
{!! Form::label("logo_en", "Logo", ['class' => 'col-sm-2 control-label','for'=>'logo_en']) !!}
{!! Form::file('logo_en', ['class' => 'form-control','accept'=>"image/jpeg,image/png,image/gif","disabled"=>@$arr_data['disabled_data']]) !!}
{{-- logo --}}
{!! Form::label("title_en", "ชื่อ", ['class' => 'col-sm-2 control-label','for'=>'title_en']) !!}
{!! Form::text("title_en", null, ['class' =>'form-control','placeholder'=>"",'id'=>'title_en',"disabled"=>@$arr_data['disabled_data']]) !!}
{!! Form::label("content_en", "รายละเอียด", ['class' => 'col-sm-2 control-label','for'=>'content_en']) !!}
{!! Form::textarea("content_en", null, ['class' =>'form-control class_ckeditor','size' => '50x7','placeholder'=>"",'id'=>'content_en',"disabled"=>@$arr_data['disabled_data']]) !!}
@if (isset($products->gallery_en) && $products->gallery_en!="") @foreach ($products->gallery_en as $product)
your image




@endforeach @endif