<?php
/**
* @author      Magetop Developer (Hau) + kien
* @package     Magento Multi Vendor Marketplace
* @copyright   Copyright (c) Magetop (https://www.magetop.com)
* @terms       https://www.magetop.com/terms
* @license     https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
**/
?>
<?php $helperMk = $this->helper(\Magetop\Marketplace\Helper\Collection::class); ?>
<?php $_sellerInfomation=$block->getSellerInfomation() ?>
<div class="block block-maketplace-profile mgt-theme-div">
	<div class="block-content">
		<form id="form-edit-profile-seller-id" class="form form-edit-profile-seller" method="post" enctype="multipart/form-data" action="<?php /* @escapeNotVerified */ echo $block->getUrl('marketplace/seller/editPost') ?>">
            <input type="hidden" name="seller[sellerId]" value="<?php echo $_sellerInfomation['id'] ?>" />
			<?php echo $block->getBlockHtml('formkey')?>
			<legend class="legend"><span><?php /* @escapeNotVerified */ echo __('Profile Information') ?></span></legend>
            <fieldset class="fieldset rowset info">
				<div class="page-head-actions">
					<div class="row">
						<div class="col-sm-12">
							<div class="actions-buttons">
								<button id="save" title="<?php echo __('Save Config') ?>" type="submit" class="btn btn-default btn-success" role="button"><span><span><?php echo __('Save Config') ?></span></span></button>
							</div>
						</div>
					</div>
				</div>
				<div class="section-entry active">
					<div class="section-head">
                        <strong><?php  echo __('General') ?></strong>
					</div>
					<div class="section-content">
						<div class="section-fieldset">
							<div class="field row storetitle">
								<label class="label col-sm-3" for="storetitle"><span><?php /* @escapeNotVerified */ echo __('Store Title') ?></span><span style="color: red;"> * </span></label>
								<div class="control col-sm-7">
									<input type="text" data-validate="{required:true}" name="seller[storetitle]" id="storetitle" title="<?php /* @escapeNotVerified */ echo __('Store Title') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['storetitle'] ?>" />
								</div>				
							</div>
							<div class="field row storeurl">
								<label class="label col-sm-3" for="storeurl"><span><?php /* @escapeNotVerified */ echo __('Store Url') ?></span><span style="color: red;"> * </span></label>
								<div class="control col-sm-7">
									<input type="text" data-validate="{required:true}" name="seller[storeurl]" id="storeurl" title="<?php /* @escapeNotVerified */ echo __('Store Url') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['storeurl'] ?>" />
								</div>				
							</div>
							<div class="field row company">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Company') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[company]" id="company" title="<?php /* @escapeNotVerified */ echo __('Company') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['company'] ?>" />
								</div>
							</div>
							<div class="field row bannerimg">
								<label class="label col-sm-3" for="bannerimg"><span><?php /* @escapeNotVerified */ echo __('Company Banner') ?></span></label>
								<div class="control col-sm-7">
									<input type="file" id="bannerimg" name="seller[bannerimg]" title="<?php /* @escapeNotVerified */ echo __('Banner Pic') ?>" class="input-text banner admin__control-text" size="26" />					
									<?php if($_sellerInfomation['bannerimg']){ 
										$_urlImage=$block->getUrlImage($_sellerInfomation['bannerimg']);
									?>
										<div class="block block-image">
											<img src="<?php echo $_urlImage ?>" title="" alt="" /><br />
											<input type="checkbox" id="bannerimg_delete" value="1" name="seller[bannerimg_delete]" />
											<label class="label" for="bannerimg_delete"><?php /* @escapeNotVerified */ echo __('Delete Banner Image') ?></label>
											<input type="hidden" name="seller[bannerimg_value]" value="<?php echo $_sellerInfomation['bannerimg'] ?>" />
										</div>
									<?php } ?>
								</div>
							</div>
							<div class="field row logoimg">
								<label class="label col-sm-3" for="logoimg"><span><?php /* @escapeNotVerified */ echo __('Company Logo') ?></span></label>
								<div class="control col-sm-7">
									<input type="file" id="logoimg" name="seller[logoimg]" title="<?php /* @escapeNotVerified */ echo __('Logo Pic') ?>" class="input-text logoimg admin__control-text" size="26" />					
									<?php if($_sellerInfomation['logoimg']){ 
										$_urlImage=$block->getUrlImage($_sellerInfomation['logoimg']);
									?>
										<div class="block block-image">
											<img src="<?php echo $_urlImage ?>" title="" alt="" /><br />
											<input type="checkbox" value="1" id="logoimg_delete" name="seller[logoimg_delete]" />
											<label class="label" for="logoimg_delete"><?php /* @escapeNotVerified */ echo __('Delete Logo Image') ?></label>
											<input type="hidden" name="seller[logoimg_value]" value="<?php echo $_sellerInfomation['logoimg'] ?>" />
										</div>
									<?php } ?>					
								</div>
							</div>
							<div class="field row short_description">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Short Description') ?></span></label>
								<div class="control col-sm-7">
									<textarea name='seller[short_description]' title='<?php /* @escapeNotVerified */ echo __('Short Description') ?>' id='short_description' class='input-text compdesi wysiwyg-editor' ><?php echo $_sellerInfomation['short_description'] ?></textarea>
								</div>
							</div>		
							<div class="field row description">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('About Us') ?></span></label>
								<div class="control col-sm-7">
									<textarea name='seller[description]' title='<?php /* @escapeNotVerified */ echo __('About Us') ?>' id='description' class='input-text compdesi wysiwyg-editor' ><?php echo $_sellerInfomation['description'] ?></textarea>
								</div>
							</div>			
							<div class="field row returnpolicy">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Return Policy') ?></span></label>
								<div class="control col-sm-7">
									<textarea name='seller[returnpolicy]' title='<?php /* @escapeNotVerified */ echo __('Return Policy') ?>' id='returnpolicy' class='input-text compdesi wysiwyg-editor' ><?php echo $_sellerInfomation['returnpolicy'] ?></textarea>
								</div>
							</div>			
							<div class="field row shippingpolicy">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Shipping Policy') ?></span></label>
								<div class="control col-sm-7">
									<textarea name='seller[shippingpolicy]' title='<?php /* @escapeNotVerified */ echo __('Shipping Policy') ?>' id='shippingpolicy' class='input-text compdesi wysiwyg-editor' ><?php echo $_sellerInfomation['shippingpolicy'] ?></textarea>
								</div>
							</div>
							<div class="field row contactnumber">
								<label class="label col-sm-3" for="contactnumber"><span><?php /* @escapeNotVerified */ echo __('Contact Number') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[contactnumber]" id="contactnumber" title="<?php /* @escapeNotVerified */ echo __('Contact Number') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['contactnumber'] ?>" />
								</div>
							</div>
                            <div class="field row header_section_color">
								<label class="label col-sm-3" for="header_section_color"><span><?php /* @escapeNotVerified */ echo __('Header Section Color') ?></span></label>
								<div class="control col-sm-7">
									<input type="color" name="seller[header_section_color]" id="header_section_color" title="<?php /* @escapeNotVerified */ echo __('Header Section Color') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['header_section_color'] ?>" />
								</div>
							</div>
                            <div class="field row footer_section_color">
								<label class="label col-sm-3" for="footer_section_color"><span><?php /* @escapeNotVerified */ echo __('Footer Section Color') ?></span></label>
								<div class="control col-sm-7">
									<input type="color" name="seller[footer_section_color]" id="footer_section_color" title="<?php /* @escapeNotVerified */ echo __('Footer Section Color') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['footer_section_color'] ?>" />
								</div>
							</div>
                            <div class="field row button_section_color">
								<label class="label col-sm-3" for="button_section_color"><span><?php /* @escapeNotVerified */ echo __('Button Color') ?></span></label>
								<div class="control col-sm-7">
									<input type="color" name="seller[button_section_color]" id="button_section_color" title="<?php /* @escapeNotVerified */ echo __('Footer Section Color') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['button_section_color'] ?>" />
								</div>
							</div>
                            <div class="field row price_display">
								<label class="label col-sm-3" for="price_display"><span><?php /* @escapeNotVerified */ echo __('Price Display') ?></span></label>
								<div class="control col-sm-7">
									<select name="seller[price_display]">
                                        <option value="1" <?php echo $_sellerInfomation['price_display']==1?'selected=selected':'' ?>>Yes</option>
                                        <option value="0" <?php echo $_sellerInfomation['price_display']==0?'selected=selected':'' ?>>No</option>
                                    </select>
								</div>
							</div>
                            <div class="field row online_store">
								<label class="label col-sm-3" for="online_store"><span><?php /* @escapeNotVerified */ echo __('Online Store') ?></span></label>
								<div class="control col-sm-7">
									<select name="seller[online_store]">
                                        <option value="1" <?php echo $_sellerInfomation['online_store']==1?'selected=selected':'' ?>>Yes</option>
                                        <option value="0" <?php echo $_sellerInfomation['online_store']==0?'selected=selected':'' ?>>No</option>
                                    </select>
								</div>
							</div>
                            <div class="field row fax_details">
								<label class="label col-sm-3" for="seller_fax"><span><?php /* @escapeNotVerified */ echo __('Fax') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[seller_fax]" id="seller_fax" title="<?php /* @escapeNotVerified */ echo __('Fax') ?>" class="input-text admin__control-text" value="<?php echo isset($_sellerInfomation['seller_fax']) ? $_sellerInfomation['seller_fax'] : ''; ?>" />
								</div>
							</div>
							<div class="field row bank_details">
								<label class="label col-sm-3" for="bank_details"><span><?php /* @escapeNotVerified */ echo __('Bank Details') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[bank_details]" id="bank_details" title="<?php /* @escapeNotVerified */ echo __('Bank Details') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['bank_details'] ?>" />
								</div>
							</div>
							<?php 
								$moduleManager = \Magento\Framework\App\ObjectManager::getInstance()->create('Magento\Framework\Module\Manager');	
								if($moduleManager->isEnabled('Magetop_PaypalAdaptive')){
							?>
									<div class="field row paymentsource">
										<label class="label col-sm-3" for="paymentsource"><span><?php /* @escapeNotVerified */ echo __('Paypal Payment info') ?></span><span style="color: red;"> * </span></label>
										<div class="control col-sm-7">
											<textarea name="seller[paymentsource]" id="paymentsource" title="<?php /* @escapeNotVerified */ echo __('Paypal Payment info') ?>" class="input-text compdesi" data-validate="{required:true, 'validate-email':true}"><?php echo $_sellerInfomation['paymentsource'] ?></textarea>
										</div>
									</div>
							<?php } ?>											
						</div>
					</div>
				</div>
				<div class="section-entry">
					<div class="section-head">
                        <strong><?php  echo __('Address') ?></strong>
					</div>
					<div class="section-content">
						<div class="section-fieldset">
							<div class="field row address">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Address') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[address]" id="address" title="<?php /* @escapeNotVerified */ echo __('Address') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['address'] ?>" />
								</div>
							</div> 
							<div class="field row city">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('City') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[city]" id="city" title="<?php /* @escapeNotVerified */ echo __('City') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['city'] ?>" />
								</div>
							</div>  
							<div class="field row zipcode">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Zipcode') ?></span></label>
								<div class="control col-sm-7">
									<input type="text" name="seller[zipcode]" id="zipcode" title="<?php /* @escapeNotVerified */ echo __('Zipcode') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['zipcode'] ?>" />
								</div>
							</div>           
							<div class="field row country">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Country') ?></span></label>
								<div class="control col-sm-7">
									<select id="country" name="seller[country]" title="<?php /* @escapeNotVerified */ echo __('Country') ?>">
										<option disabled="disabled" selected="selected" value=""><?php /* @escapeNotVerified */ echo __('Select Country') ?></option>
										<?php
										$_countries=$block->_getOptionsCountry();
										foreach($_countries as $k=>$_countryitem){						
											if(!$k) continue;
											if($_countryitem['value']==$_sellerInfomation['country']){
										?>						
												<option value="<?php echo $_countryitem['value']?>" selected="selected"><?php echo $_countryitem['label']?></option>
											<?php }else{ ?>
												<option value="<?php echo $_countryitem['value']?>"><?php echo $_countryitem['label']?></option>
											<?php } ?>
										<?php } ?>
									</select>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="section-entry" style="display: none">
					<div class="section-head">
                        <strong><?php  echo __('Homepage Meta Information') ?></strong>
					</div>
					<div class="section-content"  >
						<div class="section-fieldset">
							<div class="field row metakeywords">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Meta Keywords') ?></span></label>
								<div class="control col-sm-7">
									<textarea name="seller[meta_keyword]" id="meta_keyword" title="<?php /* @escapeNotVerified */ echo __('Meta Keywords') ?>" class="input-text compdesi"><?php echo $_sellerInfomation['meta_keyword'] ?></textarea>
								</div>
							</div>						
							<div class="field row metadescription">
								<label class="label col-sm-3"><span><?php /* @escapeNotVerified */ echo __('Meta Description') ?></span></label>
								<div class="control col-sm-7">
									<textarea name="seller[meta_description]" id="meta_description" title="<?php /* @escapeNotVerified */ echo __('Meta Description') ?>" class="input-text compdesi"><?php echo $_sellerInfomation['meta_description'] ?></textarea>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="section-entry" style="display: none">
					<div class="section-head">
                        <strong><?php  echo __('Social Accounts') ?></strong>
					</div>
					<div class="section-content"  >
						<div class="section-fieldset">
							<div class="field row facebookid">
								<label class="label col-sm-3" for="facebookid"><span><?php /* @escapeNotVerified */ echo __('Facebook ID') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[facebookid]" id="facebookid" title="<?php /* @escapeNotVerified */ echo __('Facebook ID') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['facebookid'] ?>" />
								</div>
							</div>
							<div class="field row twitterid">
								<label class="label col-sm-3" for="twitterid"><span><?php /* @escapeNotVerified */ echo __('Twitter ID') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[twitterid]" id="twitterid" title="<?php /* @escapeNotVerified */ echo __('Twitter ID') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['twitterid'] ?>" />
								</div>
							</div>
							<div class="field row instagram_url">
								<label class="label col-sm-3" for="instagram_url"><span><?php /* @escapeNotVerified */ echo __('Instagram Url') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[instagram_url]" id="instagram_url" title="<?php /* @escapeNotVerified */ echo __('Instagram Url') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['instagram_url'] ?>" />
								</div>
							</div>
							<div class="field row google_plus">
								<label class="label col-sm-3" for="google_plus"><span><?php /* @escapeNotVerified */ echo __('Google Plus Url') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[google_plus]" id="google_plus" title="<?php /* @escapeNotVerified */ echo __('Google Plus Url') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['google_plus'] ?>" />
								</div>
							</div>
							<div class="field row youtube_url">
								<label class="label col-sm-3" for="youtube_url"><span><?php /* @escapeNotVerified */ echo __('Youtube Url') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[youtube_url]" id="youtube_url" title="<?php /* @escapeNotVerified */ echo __('Youtube Url') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['youtube_url'] ?>" />
								</div>
							</div>
							<div class="field row pinterest_url">
								<label class="label col-sm-3" for="pinterest_url"><span><?php /* @escapeNotVerified */ echo __('Pinterest Url') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[pinterest_url]" id="pinterest_url" title="<?php /* @escapeNotVerified */ echo __('Pinterest Url') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['pinterest_url'] ?>" />
								</div>
							</div>
							<div class="field row vimeo_url">
								<label class="label col-sm-3" for="vimeo_url"><span><?php /* @escapeNotVerified */ echo __('Vimeo Url') ?></span></label>				
								<div class="control col-sm-7">
									<input type="text" name="seller[vimeo_url]" id="vimeo_url" title="<?php /* @escapeNotVerified */ echo __('Vimeo Url') ?>" class="input-text admin__control-text" value="<?php echo $_sellerInfomation['vimeo_url'] ?>" />
								</div>
							</div>
						</div>
					</div>
				</div>
				<?php if($moduleManager->isEnabled('Magetop_SellerAttributeManagement')){ ?>
        			<?php 
        			$value_attribute = \Magento\Framework\App\ObjectManager::getInstance()->create('\Magetop\SellerAttributeManagement\Model\SellerAttributeValue')->getCollection()->addFieldToFilter('seller_id', $_sellerInfomation['user_id'])->getFirstItem();
        			$value = @unserialize($value_attribute->getValue());
        			$data_attribute = \Magento\Framework\App\ObjectManager::getInstance()->create('\Magetop\SellerAttributeManagement\Model\SellerAttributeManagement')->getCollection()->addFieldToFilter('status', 1)->setOrder('sort_order','ASC');
        			if ( count($data_attribute) > 0 ) {
        			?>
                        <div class="section-entry">
        					<div class="section-head">
                                <strong><?php  echo __('Attribute Information') ?></strong>
        					</div>
        					<div class="section-content"  >
        						<div class="section-fieldset">
                        			<?php
                                        foreach($data_attribute as $attribute){
                                    ?>
                            			<div class="field row <?php echo $attribute['attribute_code']?>">
                            				<label class="label col-sm-3" for="<?php echo $attribute['attribute_code']?>">
                                                <?php if($attribute['required']){ ?>
                                                        <span><?php echo $attribute['default_label']?></span>
                                                        <span style="color: red;"> * </span>
                                                <?php }else{ ?>
                                                    <span><?php echo $attribute['default_label']?></span>
                                                <?php } ?>
                                            </label>
                            				<div class="control col-sm-7">
                                                <?php 
                                                    switch ($attribute['input_type']){ 
                                                        case 'text' :
                                                ?>
                                                            <input type="text" <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" class="input-text admin__control-text" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>" value="<?php echo @$value[$attribute['attribute_code']]?>" />
                                				<?php
                                                        break ;
                                                        case 'textarea' :
                                                ?>
                                                            <textarea <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" class="input-text compdesi" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>"><?php echo @$value[$attribute['attribute_code']]?></textarea>
                                                <?php
                                                        break;
                                                        case 'date' :
                                                ?>
                                                            <input type="text" <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" class="input-text admin__control-text" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>" value="<?php echo @$value[$attribute['attribute_code']]?>" style="width: 100%;" />
                                                            <script>
                                                                require([
                                                                    "jquery",
                                                                    "mage/mage",
                                                                    "mage/calendar"
                                                                ], function($){
                                                                    $("#<?php echo $attribute['attribute_code']?>").calendar({'dateFormat':'mm/dd/yy'});
                                                                });
                                                            </script>
                                                <?php
                                                        break;
                                                        case 'boolean' :
                                                ?>			
                                        					<select <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>">
                                                                <option value="YES" <?php echo @$value[$attribute['attribute_code']]=='YES'?'selected=""':''?>><?php echo __('YES') ?></option>
                                                                <option value="NO"  <?php echo @$value[$attribute['attribute_code']]=='NO'?'selected=""':''?>><?php echo __('NO') ?></option>
                                                            </select>
                                                <?php
                                                        break;
                                                        case 'multiselect' :
                                                ?>
                                                            <select multiple <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" name="attribute[<?php echo $attribute['attribute_code']?>[]]" title="<?php echo $attribute['default_label']?>">
                                                                <?php 
                                                                    $option = @unserialize($attribute['option_label']); 
                                                                    if($option){
                                                                        foreach($option as $op){
                                                                ?>
                                                                            <option value="<?php echo $op ?>" <?php echo @in_array($op,@$value[$attribute['attribute_code']])?'selected=""':''?>><?php echo $op ?></option>
                                                                <?php
                                                                        }
                                                                    }
                                                                ?>
                                                            </select>
                                                <?php
                                                        break;
                                                        case 'select' :
                                                ?>
                                                            <select <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>">
                                                                <?php 
                                                                    $option = @unserialize($attribute['option_label']); 
                                                                    if($option){
                                                                        foreach($option as $op){
                                                                ?>
                                                                            <option value="<?php echo $op ?>" <?php echo @$value[$attribute['attribute_code']]==$op?'selected=""':''?>><?php echo $op ?></option>
                                                                <?php
                                                                        }
                                                                    }
                                                                ?>
                                                            </select>
                                                <?php
                                                        break;
                                                        case 'price' :
                                                ?>
                                                            <div class="admin__control-addon">
                                                                <input type="text" <?php if($attribute['required']){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" class="admin__control-text" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>" value="<?php echo @$value[$attribute['attribute_code']]?>" />
                                                                <label class="admin__addon-prefix" for="<?php echo $attribute['attribute_code']?>">
                                                                    <span>$</span>
                                                                </label>
                                                            </div>
                                                <?php
                                                        break;
                                                        case 'media_image' :
                                                ?>
                                                            <input type="file" <?php if($attribute['required'] && !@$value[$attribute['attribute_code']]){ ?> data-validate="{required:true}" <?php } ?> id="<?php echo $attribute['attribute_code']?>" class="input-text banner admin__control-text" name="attribute[<?php echo $attribute['attribute_code']?>]" title="<?php echo $attribute['default_label']?>" size="26" />
                                                            <?php if(@$value[$attribute['attribute_code']]){ 
                                        						$_urlImage=$block->getUrlImage(@$value[$attribute['attribute_code']]);
                                        					?>
                                            					<div class="block block-image">
                                            						<img src="<?php echo $_urlImage ?>" title="" alt="" /><br />
                                            						<input type="checkbox" id="<?php echo $attribute['attribute_code']?>_delete" value="1" name="attribute[<?php echo $attribute['attribute_code']?>_delete]" />
                                            						<label class="label col-sm-3" for="<?php echo $attribute['attribute_code']?>_delete"><?php /* @escapeNotVerified */ echo __('Delete Image') ?></label>
                                            						<input type="hidden" name="attribute[<?php echo $attribute['attribute_code']?>_value]" value="<?php echo @$value[$attribute['attribute_code']] ?>" />
                                            					</div>
                                        					<?php } ?>
                                                <?php
                                                        break;
                                                    } 
                                                ?>
                                            </div>				
                            			</div>
                                    <?php } ?>
                                </div>
        					</div>
                        </div>
                    <?php } ?>
                <?php } ?>
		    </fieldset>
		</form>		
		<?php if ($helperMk->getAllowUrlRewrite()) { ?>
    		<div class="section-entry">
            	<div class="section-head">
                    <strong><?php  echo __('Manage Your Shop Url') ?></strong>
            	</div>
            	<div class="section-content">
    				<div class="section-fieldset">
    					<form action="<?= $block->escapeUrl($block->getUrl('marketplace/seller/rewriteMkUrl', ["_secure" => $this->getRequest()->isSecure()])) ?>" enctype="multipart/form-data" method="post" data-role="form-urlrewrite-validate" data-mage-init='{"validation":{}}'>
    						<?php echo $block->getBlockHtml('formkey')?>
    						<div class="mt-mp-design">
    							<fieldset class="fieldset info mt-mp-fieldset">
    							<div class="row row-field">
    								<div class="field col-xs-12 col-sm-6">
    									<label><?= /* @noEscape */ __('Profile Page Target Url Path') ?></label>
    									<input type="text" class="input-text" value="<?= /* @noEscape */ 'marketplace/seller/view/vendor/'.$_sellerInfomation['storeurl'] ?>" readonly/>
    								</div>
    								<div class="field col-xs-12 col-sm-6">
    									<label><?= /* @noEscape */ __('Profile Page Request Url Path') ?></label>
    									<input type="text" class="input-text" name="shop_request_url" id="shop_request_url" value="<?= /* @noEscape */ $helperMk->getRewriteUrlPath('marketplace/seller/view/vendor/'.$_sellerInfomation['storeurl']) ?>"/>
    								</div>
    							</div>
    							</fieldset>
    						</div>
    						<button class="button mt-mp-btn" title="<?= /* @noEscape */ __('Save Change') ?>" type="submit">
    							<span><span><?= /* @noEscape */ __('Save URL') ?></span></span>
    						</button>
    					</form>
    				</div>
    			</div>
            </div>
		<?php } ?>
	</div>
</div>
<script>
	require(['jquery','mage/mage'],function($){
		var dataFormProfile = $('#form-edit-profile-seller-id');
		var ignore = null;
		dataFormProfile.mage('validation', {
			ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
		}).find('input:text').attr('autocomplete', 'off');
        
        var dataFormAttribute = $('#form-edit-attribute-seller-id');
		var ignore = null;
		dataFormAttribute.mage('validation', {
			ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
		}).find('input:text').attr('autocomplete', 'off');
	});
</script>
<script type='text/javascript'>
	require([
        'jquery',
        'mage/translate', 
		'mage/adminhtml/events', 
		'mage/adminhtml/wysiwyg/tiny_mce/setup'
    ], function(jQuery){
        wysiwyg_description = new wysiwygSetup('description', {
			'width':'99%',
			'height':'200px',
			'plugins':[{'name':'image'}],
			'tinymce4':{'toolbar':'formatselect | bold italic underline | alignleft aligncenter alignright | bullist numlist | link table charmap','plugins':'advlist autolink lists link charmap media noneditable table contextmenu paste code help table'}
		});
		wysiwyg_description.setup('exact');
		wysiwyg_returnpolicy = new wysiwygSetup('returnpolicy', {
			'width':'99%',
			'height':'200px',
			'plugins':[{'name':'image'}],
			'tinymce4':{'toolbar':'formatselect | bold italic underline | alignleft aligncenter alignright | bullist numlist | link table charmap','plugins':'advlist autolink lists link charmap media noneditable table contextmenu paste code help table'}
		});
		wysiwyg_returnpolicy.setup('exact');
		wysiwyg_shippingpolicy = new wysiwygSetup('shippingpolicy', {
			'width':'99%',
			'height':'200px',
			'plugins':[{'name':'image'}],
			'tinymce4':{'toolbar':'formatselect | bold italic underline | alignleft aligncenter alignright | bullist numlist | link table charmap','plugins':'advlist autolink lists link charmap media noneditable table contextmenu paste code help table'}
		});
		wysiwyg_shippingpolicy.setup('exact');
    });
</script>

<style>
    .bannerimg, .short_description, .returnpolicy, .shippingpolicy, .fax_details {
        display: none;
    }
</style>