Server IP : 108.163.255.210 / Your IP : 18.224.44.233 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/public_html/AlpaiAWS/resources/views/admin/ |
Upload File : |
@extends('admin.layout') @section('content') <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> {{ trans('labels.EditProduct') }} <small>{{ trans('labels.EditProduct') }}...</small> </h1> <ol class="breadcrumb"> <li><a href="{{ URL::to('admin/dashboard/this_month') }}"><i class="fa fa-dashboard"></i> {{ trans('labels.breadcrumb_dashboard') }}</a></li> <li><a href="{{ URL::to('admin/products')}}"><i class="fa fa-dashboard"></i> {{ trans('labels.ListingAllProducts') }}</a></li> <li class="active">{{ trans('labels.EditProduct') }}</li> </ol> </section> <!-- Main content --> <section class="content"> <!-- Info boxes --> <!-- /.row --> <div class="row"> <div class="col-md-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">{{ trans('labels.EditProduct') }} </h3> </div> <!-- /.box-header --> <div class="box-body"> <div class="row"> <div class="col-xs-12"> <div class="box box-info"> <!-- /.box-header --> <!-- form start --> <div class="box-body"> @if( count($errors) > 0) @foreach($errors->all() as $error) <div class="alert alert-danger" role="alert"> <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> <span class="sr-only">Error:</span> {{ $error }} </div> @endforeach @endif {!! Form::open(array('url' =>'admin/updateproduct', 'method'=>'post', 'class' => 'form-horizontal form-validate', 'enctype'=>'multipart/form-data')) !!} {!! Form::hidden('id', $result['product'][0]->products_id, array('class'=>'form-control', 'id'=>'id')) !!} <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Product Type') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control field-validate prodcust-type" name="products_type" onChange="prodcust_type();"> <option value="">{{ trans('labels.Choose Type') }}</option> <option value="0" @if($result['product'][0]->products_type==0) selected @endif>{{ trans('labels.Simple') }}</option> <option value="1" @if($result['product'][0]->products_type==1) selected @endif>{{ trans('labels.Variable') }}</option> <option value="2" @if($result['product'][0]->products_type==2) selected @endif>{{ trans('labels.External') }}</option> </select><span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.Product Type Text') }}.</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Category') }}</label> <div class="col-sm-10 col-md-4"> @if(!empty(session('categories_id'))) @php $cat_array = explode(',', session('categories_id')); @endphp <ul class="list-group list-group-root well"> @foreach ($result['categories'] as $categories) @if(in_array($categories->id,$cat_array)) <li href="#" class="list-group-item"><label style="width:100%"><input @if(in_array($categories->id,$result['mainCategories'])) checked @endif id="categories_<?=$categories->id?>" type="checkbox" class=" required_one categories" name="categories[]" value="{{ $categories->id }}" > {{ $categories->name }}</label></li> @endif @if(!empty($categories->sub_categories)) <ul class="list-group"> <li class="list-group-item" > @foreach ($categories->sub_categories as $sub_category) @if(in_array($sub_category->sub_id,$cat_array)) <label><input @if(in_array($sub_category->sub_id,$result['subCategories'])) checked @endif type="checkbox" name="categories[]" class="required_one sub_categories sub_categories_<?=$categories->id?>" parents_id = '<?=$categories->id?>' value="{{ $sub_category->sub_id }}"> {{ $sub_category->sub_name }}</label> @endif @endforeach</li> </ul> @endif @endforeach </ul> @else <ul class="list-group list-group-root well"> @foreach ($result['categories'] as $categories) <li href="#" class="list-group-item"><label style="width:100%"><input @if(in_array($categories->id,$result['mainCategories'])) checked @endif id="categories_<?=$categories->id?>" type="checkbox" class=" required_one categories" name="categories[]" value="{{ $categories->id }}" > {{ $categories->name }}</label></li> @if(!empty($categories->sub_categories)) <ul class="list-group"> <li class="list-group-item" > @foreach ($categories->sub_categories as $sub_category)<label><input @if(in_array($sub_category->sub_id,$result['subCategories'])) checked @endif type="checkbox" name="categories[]" class="required_one sub_categories sub_categories_<?=$categories->id?>" parents_id = '<?=$categories->id?>' value="{{ $sub_category->sub_id }}"> {{ $sub_category->sub_name }}</label> @endforeach</li> </ul> @endif @endforeach </ul> @endif <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ChooseCatgoryText') }}.</span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Manufacturers') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="manufacturers_id"> <option value="">{{ trans('labels.Choose Manufacturer') }}</option> @foreach ($result['manufacturer'] as $manufacturer) <option @if($result['product'][0]->manufacturers_id == $manufacturer->id ) selected @endif value="{{ $manufacturer->id }}">{{ $manufacturer->name }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.ChooseManufacturerText') }}..</span> </div> </div> <hr> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.FlashSale') }}</label> <div class="col-sm-10 col-md-4"> <select class="form-control" onChange="showFlash()" name="isFlash" id="isFlash"> <option value="no" @if($result['flashProduct'][0]->flash_status == 0) selected @endif>{{ trans('labels.No') }}</option> <option value="yes" @if($result['flashProduct'][0]->flash_status == 1) selected @endif>{{ trans('labels.Yes') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.FlashSaleText') }}</span> </div> </div> <div class="flash-container" style="display: none;"> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.FlashSalePrice') }}</label> <div class="col-sm-10 col-md-4"> <input class="form-control" type="text" name="flash_sale_products_price" id="flash_sale_products_price" value="{{$result['flashProduct'][0]->flash_sale_products_price}}"> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.FlashSalePriceText') }}</span> <span class="help-block hidden">{{ trans('labels.FlashSalePriceText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.FlashSaleDate') }}</label> @if($result['flashProduct'][0]->flash_status == 1) <div class="col-sm-10 col-md-2"> <input class="form-control datepicker" readonly readonly type="text" name="flash_start_date" id="flash_start_date" value="{{ date('d/m/Y', $result['flashProduct'][0]->flash_start_date) }}"> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.FlashSaleDateText') }}</span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> <div class="col-sm-10 col-md-2 bootstrap-timepicker"> <input type="text" class="form-control timepicker" readonly name="flash_start_time" id="flash_start_time" value="{{ date('h:i:sA', $result['flashProduct'][0]->flash_start_date) }}" > <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> @else <div class="col-sm-10 col-md-2"> <input class="form-control datepicker" readonly readonly type="text" name="flash_start_date" id="flash_start_date" value=""> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.FlashSaleDateText') }}</span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> <div class="col-sm-10 col-md-2 bootstrap-timepicker"> <input type="text" class="form-control timepicker" readonly name="flash_start_time" id="flash_start_time" value="" > <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> @endif </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.FlashExpireDate') }}</label> @if($result['flashProduct'][0]->flash_status == 1) <div class="col-sm-10 col-md-2"> <input class="form-control datepicker" readonly readonly type="text" name="flash_expires_date" id="flash_expires_date" value="{{ date('d/m/Y', $result['flashProduct'][0]->flash_expires_date) }}"> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.FlashExpireDateText') }}</span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> <div class="col-sm-10 col-md-2 bootstrap-timepicker"> <input type="text" class="form-control timepicker" readonly name="flash_end_time" id="flash_end_time" value="{{ date('h:i:sA', $result['flashProduct'][0]->flash_expires_date) }}" > <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> @else <div class="col-sm-10 col-md-2"> <input class="form-control datepicker" readonly readonly type="text" name="flash_expires_date" id="flash_expires_date" value=""> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.FlashExpireDateText') }}</span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> <div class="col-sm-10 col-md-2 bootstrap-timepicker"> <input type="text" class="form-control timepicker" readonly name="flash_end_time" id="flash_end_time" value="" > <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> @endif </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Status') }}</label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="flash_status"> <option value="1">{{ trans('labels.Active') }}</option> <option value="0">{{ trans('labels.Inactive') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ActiveFlashSaleProductText') }}</span> </div> </div> </div> <hr> <div class="form-group special-link"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Special') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control" onChange="showSpecial()" name="isSpecial" id="isSpecial"> <option @if($result['product'][0]->products_id != $result['specialProduct'][0]->products_id && $result['specialProduct'][0]->status == 0) selected @endif value="no">{{ trans('labels.No') }}</option> <option @if($result['product'][0]->products_id == $result['specialProduct'][0]->products_id && $result['specialProduct'][0]->status == 1) selected @endif value="yes">{{ trans('labels.Yes') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.SpecialProductText') }}</span> </div> </div> <div class="special-container" style="display: none;"> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.SpecialPrice') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('specials_new_products_price', $result['specialProduct'][0]->specials_new_products_price, array('class'=>'form-control', 'id'=>'special-price')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.SpecialPriceTxt') }}.</span> <span class="help-block hidden">{{ trans('labels.SpecialPriceNote') }}.</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ExpiryDate') }}</label> <div class="col-sm-10 col-md-4"> @if(!empty($result['specialProduct'][0]->status) and $result['specialProduct'][0]->status == 1) {!! Form::text('expires_date', date('d/m/Y', $result['specialProduct'][0]->expires_date), array('class'=>'form-control datepicker', 'id'=>'expiry-date', 'readonly'=>'readonly')) !!} @else {!! Form::text('expires_date', '', array('class'=>'form-control datepicker', 'id'=>'expiry-date', 'readonly'=>'readonly')) !!} @endif <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.SpecialExpiryDateTxt') }} </span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Status') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="status"> <option @if($result['specialProduct'][0]->status == 1 ) selected @endif value="1">{{ trans('labels.Active') }} </option> <option @if($result['specialProduct'][0]->status == 0 ) selected @endif value="0">{{ trans('labels.Inactive') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ActiveSpecialProductText') }}.</span> </div> </div> </div> <hr> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.slug') }} </label> <div class="col-sm-10 col-md-4"> <input type="hidden" name="old_slug" value="{{$result['product'][0]->products_slug}}"> <input type="text" name="slug" class="form-control field-validate" value="{{$result['product'][0]->products_slug}}"> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;margin-top: 0;">{{ trans('labels.slugText') }}</span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> </div> @foreach($result['description'] as $description_data) <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ProductName') }} ({{ $description_data['language_name'] }})</label> <div class="col-sm-10 col-md-4"> <input type="text" name="products_name_<?=$description_data['languages_id']?>" class="form-control field-validate" value='{{$description_data['products_name']}}'> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.EnterProductNameIn') }} {{ $description_data['language_name'] }} </span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> </div> <div class="form-group external_link" style="display: none"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.External URL') }} ({{ $description_data['language_name'] }})</label> <div class="col-sm-10 col-md-4"> <input type="text" name="products_url_<?=$description_data['languages_id']?>" class="form-control products_url" value='{{$description_data['products_url']}}'> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.External URL Text') }} ({{ $description_data['language_name'] }}) </span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Description') }} ({{ $description_data['language_name'] }})</label> <div class="col-sm-10 col-md-8"> <textarea id="editor<?=$description_data['languages_id']?>" name="products_description_<?=$description_data['languages_id']?>" class="form-control" rows="5">{{stripslashes($description_data['products_description'])}}</textarea> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.EnterProductDetailIn') }} {{ $description_data['language_name'] }}</span> </div> </div> @endforeach <div class="form-group" id="tax-class"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.TaxClass') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control field-validate" name="tax_class_id"> <option selected> {{ trans('labels.SelectTaxClass') }}</option> @foreach ($result['taxClass'] as $taxClass) <option @if($result['product'][0]->products_tax_class_id == $taxClass->tax_class_id ) selected @endif value="{{ $taxClass->tax_class_id }}">{{ $taxClass->tax_class_title }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ChooseTaxClassForProductText') }} </span> <span class="help-block hidden">{{ trans('labels.SelectProductTaxClass') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ProductsPrice') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('products_price', $result['product'][0]->products_price, array('class'=>'form-control number-validate', 'id'=>'products_price')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ProductPriceText') }} </span> <span class="help-block hidden">{{ trans('labels.ProductPriceText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Min Order Limit') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('products_min_order', $result['product'][0]->products_min_order, array('class'=>'form-control', 'id'=>'products_min_order')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.Min Order Limit Text') }} </span> <span class="help-block hidden">{{ trans('labels.Min Order Limit Text') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Max Order Limit') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::text('products_max_stock', $result['product'][0]->products_max_stock, array('class'=>'form-control', 'id'=>'products_max_stock')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.Max Order Limit Text') }} </span> <span class="help-block hidden">{{ trans('labels.Max Order Limit Text') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ProductsWeight') }}</label> <div class="col-sm-10 col-md-2"> {!! Form::text('products_weight', $result['product'][0]->products_weight, array('class'=>'form-control number-validate', 'id'=>'products_weight')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.RequiredTextForWeight') }} </span> </div> <div class="col-sm-10 col-md-2" style="padding-left: 0;"> <select class="form-control" name="products_weight_unit"> @if(count($result['units'])>0) @foreach($result['units'] as $unit) <option value="{{$unit->unit_name}}" @if($result['product'][0]->products_weight_unit==$unit->unit_name) selected @endif>{{$unit->unit_name}}</option> @endforeach @endif </select> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">Color</label> <div class="col-sm-10 col-md-4"> <?php $colors = DB::table('products_options_values')->where('products_options_id', '1')->get(); $prod_colors = DB::table('products_to_colors')->where('products_id', $result['product'][0]->products_id)->get(); ?> <select class="form-control" name="colors[]" multiple> @foreach($colors as $color) <option value="{{$color->products_options_values_name}}">{{$color->products_options_values_name}}</option> @endforeach </select> Available Colors : @foreach($prod_colors as $prod_color) <span class="badge badge-secondary">{{$prod_color->color}}</span> @endforeach </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">Size</label> <div class="col-sm-10 col-md-4"> <?php $sizes = DB::table('products_options_values')->where('products_options_id', '3')->get(); $prod_sizes = DB::table('products_to_sizes')->where('products_id', $result['product'][0]->products_id)->get(); ?> <select class="form-control" name="sizes[]" multiple> @foreach($sizes as $size) <option value="{{$size->products_options_values_name}}">{{$size->products_options_values_name}}</option> @endforeach </select> Available Sizes : @foreach($prod_sizes as $prod_size) <span class="badge badge-secondary">{{$prod_size->size}}</span> @endforeach </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ProductsModel') }} </label> <div class="col-sm-10 col-md-4"> {!! Form::text('products_model', $result['product'][0]->products_model, array('class'=>'form-control', 'id'=>'products_model')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ProductsModelText') }} </span> <span class="help-block hidden">{{ trans('labels.textRequiredFieldMessage') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Image') }} </label> <div class="col-sm-10 col-md-4"> {!! Form::file('products_image', array('id'=>'products_image')) !!}<span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.UploadProductImageText') }}</span> <br> {!! Form::hidden('oldImage', $result['product'][0]->products_image , array('id'=>'oldImage', 'class'=>'field-validate ')) !!} <img src="{{asset('').$result['product'][0]->products_image}}" alt="" width=" 100px"> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.IsFeature') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="is_feature"> <option value="0" @if($result['product'][0]->is_feature==0) selected @endif>{{ trans('labels.No') }}</option> <option value="1" @if($result['product'][0]->is_feature==1) selected @endif>{{ trans('labels.Yes') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.IsFeatureProuctsText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">SKU</label> <div class="col-sm-10 col-md-4"> {!! Form::text('sku', $result['product'][0]->sku, array('class'=>'form-control', 'id'=>'sku')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">Estimated Delivery</label> <div class="col-sm-10 col-md-4"> {!! Form::text('estimated_delivery', $result['product'][0]->estimated_delivery, array('class'=>'form-control', 'id'=>'estimated_delivery')) !!} </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Status') }} </label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="products_status"> <option value="1" @if($result['product'][0]->products_status==1) selected @endif >{{ trans('labels.Active') }}</option> <option value="0" @if($result['product'][0]->products_status==0) selected @endif>{{ trans('labels.Inactive') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.SelectStatus') }}</span> </div> </div> <!-- /.box-body --> <div class="box-footer text-center"> <button type="submit" class="btn btn-primary pull-right" id="attribute-btn">{{ trans('labels.Add Atrributes') }} <i class="fa fa-angle-right 2x"></i></button> <button type="submit" class="btn btn-primary pull-right" id="normal-btn" style="display: none">{{ trans('labels.addinventory') }} <i class="fa fa-angle-right 2x"></i></button> <button type="submit" class="btn btn-primary pull-right" id="external-btn" style="display: none">{{ trans('labels.AddProducts') }} <i class="fa fa-angle-right 2x"></i></button> </div> <!-- /.box-footer --> {!! Form::close() !!} </div> </div> </div> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> <!-- Main row --> <!-- /.row --> </section> <!-- /.content --> </div> <script src="{!! asset('resources/views/admin/plugins/jQuery/jQuery-2.2.0.min.js') !!}"></script> <script type="text/javascript"> $(function () { //for multiple languages @foreach($result['languages'] as $languages) // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace('editor{{$languages->languages_id}}'); @endforeach //bootstrap WYSIHTML5 - text editor $(".textarea").wysihtml5(); }); </script> @endsection