<?php $__env->startSection('content'); ?>
<div class="side-title">
    <h3><?php echo e($head ?? ''); ?></h3>
</div>

<div class="border-item">
    <form class="form-row" method="post" action="<?php echo e($action); ?>" enctype="multipart/form-data">
        
        <?php if($product ?? ''  && $product->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>
      
      <div class="form-group col-lg-6">
             <label><?php echo e(meta('youtube', getCurrentLocale()) ?? __('products.youtube')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('youtube') ? 'is-invalid' : ''); ?>" id="youtube"  name="youtube" placeholder="<?php echo e(meta('youtube', getCurrentLocale()) ?? __('products.youtube')); ?> " value='<?php echo e(old("youtube", $product->youtube ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('youtubeNum', getCurrentLocale()) ?? __('products.youtubeNum')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('youtubeNum') ? 'is-invalid' : ''); ?>" id="youtubeNum"  name="youtubeNum" placeholder="<?php echo e(meta('youtubeNum', getCurrentLocale()) ?? __('products.youtubeNum')); ?> " value='<?php echo e(old("youtubeNum", $product->youtubeNum ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('youtubeT', getCurrentLocale()) ?? __('products.youtubeT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('youtubeT') ? 'is-invalid' : ''); ?>" id="youtubeT"  name="youtubeT" placeholder="<?php echo e(meta('youtubeT', getCurrentLocale()) ?? __('products.youtubeT')); ?> " value='<?php echo e(old("youtubeT", $product->youtubeT ?? "")); ?>'/>
        </div>
 
         
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('sanpchat', getCurrentLocale()) ?? __('products.sanpchat')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('sanpchat') ? 'is-invalid' : ''); ?>" id="sanpchat"  name="sanpchat" placeholder="<?php echo e(meta('sanpchat', getCurrentLocale()) ?? __('products.sanpchat')); ?> " value='<?php echo e(old("sanpchat", $product->sanpchat ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('sanpchatNum', getCurrentLocale()) ?? __('products.sanpchatNum')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('sanpchatNum') ? 'is-invalid' : ''); ?>" id="sanpchatNum"  name="sanpchatNum" placeholder="<?php echo e(meta('sanpchatNum', getCurrentLocale()) ?? __('products.sanpchatNum')); ?> " value='<?php echo e(old("sanpchatNum", $product->sanpchatNum ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('sanpchatT', getCurrentLocale()) ?? __('products.sanpchatT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('sanpchatT') ? 'is-invalid' : ''); ?>" id="sanpchatT"  name="sanpchatT" placeholder="<?php echo e(meta('sanpchatT', getCurrentLocale()) ?? __('products.sanpchatT')); ?> " value='<?php echo e(old("sanpchatT", $product->sanpchatT ?? "")); ?>'/>
        </div>
 
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('tiktok', getCurrentLocale()) ?? __('products.tiktok')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('tiktok') ? 'is-invalid' : ''); ?>" id="tiktok"  name="tiktok" placeholder="<?php echo e(meta('tiktok', getCurrentLocale()) ?? __('products.tiktok')); ?> " value='<?php echo e(old("tiktok", $product->tiktok ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('tiktokNum', getCurrentLocale()) ?? __('products.tiktokNum')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('tiktokNum') ? 'is-invalid' : ''); ?>" id="tiktokNum"  name="tiktokNum" placeholder="<?php echo e(meta('tiktokNum', getCurrentLocale()) ?? __('products.tiktokNum')); ?> " value='<?php echo e(old("tiktokNum", $product->tiktokNum ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('tiktokT', getCurrentLocale()) ?? __('products.tiktokT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('tiktokT') ? 'is-invalid' : ''); ?>" id="tiktokT"  name="tiktokT" placeholder="<?php echo e(meta('tiktokT', getCurrentLocale()) ?? __('products.tiktokT')); ?> " value='<?php echo e(old("tiktokT", $product->tiktokT ?? "")); ?>'/>
        </div>
 
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('instagram', getCurrentLocale()) ?? __('products.instagram')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('instagram') ? 'is-invalid' : ''); ?>" id="instagram"  name="instagram" placeholder="<?php echo e(meta('instagram', getCurrentLocale()) ?? __('products.instagram')); ?> " value='<?php echo e(old("instagram", $product->instagram ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('instagramNum', getCurrentLocale()) ?? __('products.instagramNum')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('instagramNum') ? 'is-invalid' : ''); ?>" id="instagramNum"  name="instagramNum" placeholder="<?php echo e(meta('instagramNum', getCurrentLocale()) ?? __('products.instagramNum')); ?> " value='<?php echo e(old("instagramNum", $product->instagramNum ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('instagramT', getCurrentLocale()) ?? __('products.instagramT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('instagramT') ? 'is-invalid' : ''); ?>" id="instagramT"  name="instagramT" placeholder="<?php echo e(meta('instagramT', getCurrentLocale()) ?? __('products.instagramT')); ?> " value='<?php echo e(old("instagramT", $product->instagramT ?? "")); ?>'/>
        </div>
 
   <div class="form-group col-lg-6">
             <label><?php echo e(meta('followers', getCurrentLocale()) ?? __('products.followers')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('followers') ? 'is-invalid' : ''); ?>" id="followers"  name="followers" placeholder="<?php echo e(meta('followers', getCurrentLocale()) ?? __('products.followers')); ?> " value='<?php echo e(old("followers", $product->followers ?? "")); ?>'/>
        </div>
        
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('followersT', getCurrentLocale()) ?? __('products.followersT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('followersT') ? 'is-invalid' : ''); ?>" id="followersT"  name="followersT" placeholder="<?php echo e(meta('followersT', getCurrentLocale()) ?? __('products.followersT')); ?> " value='<?php echo e(old("followersT", $product->followersT ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('total', getCurrentLocale()) ?? __('products.total')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('total') ? 'is-invalid' : ''); ?>" id="total"  name="total" placeholder="<?php echo e(meta('total', getCurrentLocale()) ?? __('products.total')); ?> " value='<?php echo e(old("total", $product->total ?? "")); ?>'/>
        </div>
        
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('totalT', getCurrentLocale()) ?? __('products.totalT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('totalT') ? 'is-invalid' : ''); ?>" id="totalT"  name="totalT" placeholder="<?php echo e(meta('totalT', getCurrentLocale()) ?? __('products.totalT')); ?> " value='<?php echo e(old("totalT", $product->totalT ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('views', getCurrentLocale()) ?? __('products.views')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('views') ? 'is-invalid' : ''); ?>" id="views"  name="views" placeholder="<?php echo e(meta('views', getCurrentLocale()) ?? __('products.views')); ?> " value='<?php echo e(old("views", $product->views ?? "")); ?>'/>
        </div>
 
 
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('viewsT', getCurrentLocale()) ?? __('products.viewsT')); ?></label>
            <input type="text"  class="form-control  <?php echo e($errors->has('viewsT') ? 'is-invalid' : ''); ?>" id="viewsT"  name="viewsT" placeholder="<?php echo e(meta('viewsT', getCurrentLocale()) ?? __('products.viewsT')); ?> " value='<?php echo e(old("viewsT", $product->viewsT ?? "")); ?>'/>
        </div>
 
         
<!--<div class="col-lg-12">-->
<!--         <div class="row "  id="countries">-->
<!--                    <div class="col-lg-12"><h3><?php echo e(__('products.countries')); ?></h3></div>-->
                    
<!--                    <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>-->
<!--                    <div class="row col-lg-12 pricing-list-item border-item mb-4">-->
                               
<!--<div class="col-lg-6">-->
<!--            <label><?php echo e(__('products.country')); ?> </label>-->
            
<!--                        <select  class="form-control " required name="countries[<?php echo e($key); ?>][country_id]">-->
<!--                            <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>-->
<!--                         <option <?php if($country->id == $row->country_id): ?> selected <?php endif; ?> value="<?php echo e($country->id); ?>"><?php echo e(countrydescription($country->id,'name')); ?></option>-->
<!--                         <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>-->
<!--                          </select>-->
                      
<!--        </div>-->
<!--       <div class="col-lg-6">-->
<!--            <label><?php echo e(__('products.gender')); ?> </label>-->
            
<!--                        <select  class="form-control " required name="countries[<?php echo e($key); ?>][gender]">-->
                           
<!--                         <option <?php if($row->gender == 'male'): ?> selected <?php endif; ?>  value="male"><?php echo e(__('products.male')); ?></option>-->
<!--                         <option  <?php if($row->gender == 'female'): ?> selected <?php endif; ?> value="female"><?php echo e(__('products.female')); ?></option>-->
                         
<!--                          </select>-->
                      
<!--        </div>-->
<!--        <div class="form-group col-lg-5">-->
<!--            <label><?php echo e(__('products.num')); ?> </label>-->
<!--            <input type="number" class="form-control" name="countries[<?php echo e($key); ?>][num]" required placeholder="<?php echo e(__('products.num')); ?>" value="<?php echo e($row->num); ?>" />-->

<!--        </div>-->
<!--        <div class="form-group col-lg-5">-->
<!--            <label><?php echo e(__('products.age')); ?> </label>-->
<!--            <input type="number" class="form-control" name="countries[<?php echo e($key); ?>][age]" required placeholder="<?php echo e(__('products.age')); ?>" value="<?php echo e($row->age); ?>"/>-->

<!--        </div>-->
        
<!--        <div class="form-group col-lg-2" style="font-size: 30px;margin-top:35px;">-->
<!--    	<i class="fas fa-times-circle" onclick="remove(this)"></i></div>-->
    	
    	 
<!--    	</div>-->
<!--    	<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>-->
    
<!--                </div>-->
<!--</div>-->
<!--     <div class="col-lg-12">-->
<!--       <a style="cursor: pointer;"  data-id="<?php echo e(count($items)); ?>" onclick="addcountry(this)"  class="btn_1 gray "><i class="fa fa-fw fa-plus-circle"></i><?php echo e(__("products.addcountry")); ?></a>-->
                   
<!--</div>       -->
      
        
  
      
        <div class="text-center mt-5 col-12">
            <button class="butn"><span><?php echo e(__('dashboard.save')); ?></span></button>
        </div>
    </form>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('inner_js'); ?>
    <!-- Editor JS files -->
   
  <script src="<?php echo e(asset('/assets/admin/js/lib/tinymce.min.js')); ?>"></script>
        <script>
            
    
    function remove(elem){
            $(elem).closest('.row').remove();
        }
        function addcountry(elem){
            
            var num = $(elem).attr('data-id');
        
        var newrow = parseInt(num)+1; 
        $(elem).attr('data-id', newrow);
        $('#countries').css('display','block');
         $.ajax({
          url : url_country+'/'+num,
          type : 'GET',
          data : 'nothing',
          success:function(data)
          {
            $('#countries').append(data);
          }
        })
        }
        </script>
    <script>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            urls = "<?php echo e(url('/')); ?>/admin/additem",
            url_country = <?php echo json_encode(url(getCurrentLocale().'/admin/addcountry/')); ?>,
            
            currentLanguage = "<?php echo e(getCurrentLocale()); ?>",
            imagePath = "<?php echo e(asset('')); ?>";
    </script>
    <script src="<?php echo e(asset('assets/admin/js/editor.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/lfm.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/articles.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/cobons.js')); ?>"></script>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('admin.layouts.container', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/personal4/resources/views/admin/products/form.blade.php ENDPATH**/ ?>