<?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($package ?? ''  && $package->id): ?>
            <?php echo method_field('PUT'); ?>
        <?php endif; ?>
        <?php echo csrf_field(); ?>
      
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('protien', getCurrentLocale()) ?? __('packages.protien')); ?></label>
            <input type="number" step="0.01" class="form-control  <?php echo e($errors->has('protien') ? 'is-invalid' : ''); ?>" id="protien"  name="protien" placeholder="<?php echo e(meta('protien', getCurrentLocale()) ?? __('packages.protien')); ?> " value='<?php echo e(old("protien", $package->protien ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('carbo', getCurrentLocale()) ?? __('packages.carbo')); ?></label>
            <input type="number" step="0.01"  class="form-control  <?php echo e($errors->has('carbo') ? 'is-invalid' : ''); ?>" id="carbo"  name="carbo" placeholder="<?php echo e(meta('carbo', getCurrentLocale()) ?? __('packages.carbo')); ?> " value='<?php echo e(old("carbo", $package->carbo ?? "")); ?>'/>
        </div>
  <div class="form-group col-lg-6">
            <label><?php echo e(meta('start', getCurrentLocale()) ?? __('packages.start')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('start') ? 'is-invalid' : ''); ?>" id="start" name="start" placeholder="<?php echo e(meta('start', getCurrentLocale()) ?? __('packages.start')); ?>" value='<?php echo e(old("start", $package->start ?? "")); ?>'/>
        </div> 
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('end', getCurrentLocale()) ?? __('packages.end')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('end') ? 'is-invalid' : ''); ?>" id="end" name="end" placeholder="<?php echo e(meta('end', getCurrentLocale()) ?? __('packages.end')); ?>" value='<?php echo e(old("end", $package->end ?? "")); ?>'/>
        </div> 
         
 
         
          
        <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="form-group col-lg-6">
            <label><?php echo e(meta('name', $language->local) ?? __('packages.name')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>
            <input type="text" class="form-control <?php echo e($errors->has('name_'.$language->local) ? 'is-invalid' : ''); ?>" name="name_<?php echo e($language->local); ?>" id="name_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('name', $language->local) ?? __('packages.name')); ?>" value='<?php echo e(old("name_{$language->local}", $package[$language->local]->name ?? "")); ?>'/>
        </div>

       <!--<div class="form-group col-lg-12">-->
       <!--     <label><?php echo e(meta('description', $language->local) ?? __('packages.description')); ?> <?php echo e(count($languages) > 1 ? "({$language->name})" : ''); ?> </label>-->
       <!--     <textarea name="description_<?php echo e($language->local); ?>" class="form-control <?php echo e($errors->has('description_'.$language->local) ? 'is-invalid' : ''); ?>" id="description_<?php echo e($language->local); ?>" placeholder="<?php echo e(meta('description', $language->local) ?? __('packages.description')); ?>"><?php echo e(old("description_{$language->local}", $package[$language->local]->description ?? "")); ?></textarea>-->
       <!-- </div>-->


        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
       
     
        <div class="form-group col-lg-12 image_container">
    
            <label><?php echo e(meta('image', getCurrentLocale()) ?? __('packages.image')); ?> </label>
            <input id="image_thumbnail" class="image_thumbnail" type="hidden" name="image" value="<?php echo e(old("image", $package->image ?? "")); ?>"/>

            <div class="photos main_photo <?php echo e(old('image', $package->image ?? '') ? ' wow fadeInUp' : 'hide'); ?>">
                <div class="col-md-4">
                    <div class="items">
                        <div class="img">
                            <a href="#" id="lfm" data-input=".image_thumbnail" data-preview=".image_holder" class="lfm" data-hide=".pick_button">
                                <img src="<?php echo e(asset(old('image', $package->image ?? ''))); ?> "  id="image_holder" class="image_holder"/>
                            </a>
                        </div>
                        <a href="#" class="showHide resetImage close" data-empty=".image_thumbnail" data-hide=".main_photo" data-show=".pick_button"><i class="fas fa-times"></i></a>
                    </div>
                </div>
            </div>

            <div class="clearfix"></div>
            <span class="input-group-btn pick_button <?php echo e(old('image', $package->image ?? '') ? 'hide' : ''); ?> ">
                <a id="lfm"  data-input=".image_thumbnail" data-preview=".image_holder" data-show=".main_photo" data-hide=".pick_button" class="lfm btn btn-primary text-light">
                    <i class="fas fa-camera-retro"></i> Choose
                </a>
             </span>
        </div>
        
  
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_1_6', getCurrentLocale()) ?? __('packages.cost_1_6')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_1_6') ? 'is-invalid' : ''); ?>" id="cost_1_6"  name="cost_1_6" placeholder="<?php echo e(meta('cost_1_6', getCurrentLocale()) ?? __('packages.cost_1_6')); ?> " value='<?php echo e(old("cost_1_6", $package->cost_1_6 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_1_7', getCurrentLocale()) ?? __('packages.cost_1_7')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_1_7') ? 'is-invalid' : ''); ?>" id="cost_1_7"  name="cost_1_7" placeholder="<?php echo e(meta('cost_1_7', getCurrentLocale()) ?? __('packages.cost_1_7')); ?> " value='<?php echo e(old("cost_1_7", $package->cost_1_7 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_1_26', getCurrentLocale()) ?? __('packages.cost_1_26')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_1_26') ? 'is-invalid' : ''); ?>" id="cost_1_26"  name="cost_1_26" placeholder="<?php echo e(meta('cost_1_26', getCurrentLocale()) ?? __('packages.cost_1_26')); ?> " value='<?php echo e(old("cost_1_26", $package->cost_1_26 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_1_30', getCurrentLocale()) ?? __('packages.cost_1_30')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_1_30') ? 'is-invalid' : ''); ?>" id="cost_1_30"  name="cost_1_30" placeholder="<?php echo e(meta('cost_1_30', getCurrentLocale()) ?? __('packages.cost_1_30')); ?> " value='<?php echo e(old("cost_1_30", $package->cost_1_30 ?? "")); ?>'/>
        </div>
        
  
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_2_6', getCurrentLocale()) ?? __('packages.cost_2_6')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_2_6') ? 'is-invalid' : ''); ?>" id="cost_2_6"  name="cost_2_6" placeholder="<?php echo e(meta('cost_2_6', getCurrentLocale()) ?? __('packages.cost_2_6')); ?> " value='<?php echo e(old("cost_2_6", $package->cost_2_6 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_2_7', getCurrentLocale()) ?? __('packages.cost_2_7')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_2_7') ? 'is-invalid' : ''); ?>" id="cost_2_7"  name="cost_2_7" placeholder="<?php echo e(meta('cost_2_7', getCurrentLocale()) ?? __('packages.cost_2_7')); ?> " value='<?php echo e(old("cost_2_7", $package->cost_2_7 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_2_26', getCurrentLocale()) ?? __('packages.cost_2_26')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_2_26') ? 'is-invalid' : ''); ?>" id="cost_2_26"  name="cost_2_26" placeholder="<?php echo e(meta('cost_2_26', getCurrentLocale()) ?? __('packages.cost_2_26')); ?> " value='<?php echo e(old("cost_2_26", $package->cost_2_26 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_2_30', getCurrentLocale()) ?? __('packages.cost_2_30')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_2_30') ? 'is-invalid' : ''); ?>" id="cost_2_30"  name="cost_2_30" placeholder="<?php echo e(meta('cost_2_30', getCurrentLocale()) ?? __('packages.cost_2_30')); ?> " value='<?php echo e(old("cost_2_30", $package->cost_2_30 ?? "")); ?>'/>
        </div>
        
  
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_3_6', getCurrentLocale()) ?? __('packages.cost_3_6')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_3_6') ? 'is-invalid' : ''); ?>" id="cost_3_6"  name="cost_3_6" placeholder="<?php echo e(meta('cost_3_6', getCurrentLocale()) ?? __('packages.cost_3_6')); ?> " value='<?php echo e(old("cost_3_6", $package->cost_3_6 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_3_7', getCurrentLocale()) ?? __('packages.cost_3_7')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_3_7') ? 'is-invalid' : ''); ?>" id="cost_3_7"  name="cost_3_7" placeholder="<?php echo e(meta('cost_3_7', getCurrentLocale()) ?? __('packages.cost_3_7')); ?> " value='<?php echo e(old("cost_3_7", $package->cost_3_7 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_3_26', getCurrentLocale()) ?? __('packages.cost_3_26')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_3_26') ? 'is-invalid' : ''); ?>" id="cost_3_26"  name="cost_3_26" placeholder="<?php echo e(meta('cost_3_26', getCurrentLocale()) ?? __('packages.cost_3_26')); ?> " value='<?php echo e(old("cost_3_26", $package->cost_3_26 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_3_30', getCurrentLocale()) ?? __('packages.cost_3_30')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_3_30') ? 'is-invalid' : ''); ?>" id="cost_3_30"  name="cost_3_30" placeholder="<?php echo e(meta('cost_3_30', getCurrentLocale()) ?? __('packages.cost_3_30')); ?> " value='<?php echo e(old("cost_3_30", $package->cost_3_30 ?? "")); ?>'/>
        </div>
        
  
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_4_6', getCurrentLocale()) ?? __('packages.cost_4_6')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_4_6') ? 'is-invalid' : ''); ?>" id="cost_4_6"  name="cost_4_6" placeholder="<?php echo e(meta('cost_4_6', getCurrentLocale()) ?? __('packages.cost_4_6')); ?> " value='<?php echo e(old("cost_4_6", $package->cost_4_6 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_4_7', getCurrentLocale()) ?? __('packages.cost_4_7')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_4_7') ? 'is-invalid' : ''); ?>" id="cost_4_7"  name="cost_4_7" placeholder="<?php echo e(meta('cost_4_7', getCurrentLocale()) ?? __('packages.cost_4_7')); ?> " value='<?php echo e(old("cost_4_7", $package->cost_4_7 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_4_26', getCurrentLocale()) ?? __('packages.cost_4_26')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_4_26') ? 'is-invalid' : ''); ?>" id="cost_4_26"  name="cost_4_26" placeholder="<?php echo e(meta('cost_4_26', getCurrentLocale()) ?? __('packages.cost_4_26')); ?> " value='<?php echo e(old("cost_4_26", $package->cost_4_26 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_4_30', getCurrentLocale()) ?? __('packages.cost_4_30')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_4_30') ? 'is-invalid' : ''); ?>" id="cost_4_30"  name="cost_4_30" placeholder="<?php echo e(meta('cost_4_30', getCurrentLocale()) ?? __('packages.cost_4_30')); ?> " value='<?php echo e(old("cost_4_30", $package->cost_4_30 ?? "")); ?>'/>
        </div>
        
  
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_5_6', getCurrentLocale()) ?? __('packages.cost_5_6')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_5_6') ? 'is-invalid' : ''); ?>" id="cost_5_6"  name="cost_5_6" placeholder="<?php echo e(meta('cost_5_6', getCurrentLocale()) ?? __('packages.cost_5_6')); ?> " value='<?php echo e(old("cost_5_6", $package->cost_5_6 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_5_7', getCurrentLocale()) ?? __('packages.cost_5_7')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_5_7') ? 'is-invalid' : ''); ?>" id="cost_5_7"  name="cost_5_7" placeholder="<?php echo e(meta('cost_5_7', getCurrentLocale()) ?? __('packages.cost_5_7')); ?> " value='<?php echo e(old("cost_5_7", $package->cost_5_7 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_5_26', getCurrentLocale()) ?? __('packages.cost_5_26')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_5_26') ? 'is-invalid' : ''); ?>" id="cost_5_26"  name="cost_5_26" placeholder="<?php echo e(meta('cost_5_26', getCurrentLocale()) ?? __('packages.cost_5_26')); ?> " value='<?php echo e(old("cost_5_26", $package->cost_5_26 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_5_30', getCurrentLocale()) ?? __('packages.cost_5_30')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_5_30') ? 'is-invalid' : ''); ?>" id="cost_5_30"  name="cost_5_30" placeholder="<?php echo e(meta('cost_5_30', getCurrentLocale()) ?? __('packages.cost_5_30')); ?> " value='<?php echo e(old("cost_5_30", $package->cost_5_30 ?? "")); ?>'/>
        </div>
      
        
  
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_6_6', getCurrentLocale()) ?? __('packages.cost_6_6')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_6_6') ? 'is-invalid' : ''); ?>" id="cost_6_6"  name="cost_6_6" placeholder="<?php echo e(meta('cost_6_6', getCurrentLocale()) ?? __('packages.cost_6_6')); ?> " value='<?php echo e(old("cost_6_6", $package->cost_6_6 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_6_7', getCurrentLocale()) ?? __('packages.cost_6_7')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_6_7') ? 'is-invalid' : ''); ?>" id="cost_6_7"  name="cost_6_7" placeholder="<?php echo e(meta('cost_6_7', getCurrentLocale()) ?? __('packages.cost_6_7')); ?> " value='<?php echo e(old("cost_6_7", $package->cost_6_7 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_6_26', getCurrentLocale()) ?? __('packages.cost_6_26')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_6_26') ? 'is-invalid' : ''); ?>" id="cost_6_26"  name="cost_6_26" placeholder="<?php echo e(meta('cost_6_26', getCurrentLocale()) ?? __('packages.cost_6_26')); ?> " value='<?php echo e(old("cost_6_26", $package->cost_6_26 ?? "")); ?>'/>
        </div>
        <div class="form-group col-lg-6">
             <label><?php echo e(meta('cost_6_30', getCurrentLocale()) ?? __('packages.cost_6_30')); ?></label>
            <input type="number"  class="form-control  <?php echo e($errors->has('cost_6_30') ? 'is-invalid' : ''); ?>" id="cost_6_30"  name="cost_6_30" placeholder="<?php echo e(meta('cost_6_30', getCurrentLocale()) ?? __('packages.cost_6_30')); ?> " value='<?php echo e(old("cost_6_30", $package->cost_6_30 ?? "")); ?>'/>
        </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>
        let route_prefix = "<?php echo e(url(config('lfm.prefix'))); ?>",
            url = "<?php echo e(url('/')); ?>/",
            urls = "<?php echo e(url('/')); ?>/admin/additem",
            url_type = <?php echo json_encode(url(getCurrentLocale().'/admin/type/')); ?>,
            urls_video = <?php echo json_encode(url(getCurrentLocale().'/admin/addvideo/')); ?>,
            urls_videos = <?php echo json_encode(url(getCurrentLocale().'/admin/addvideos/')); ?>,
            urls_file = <?php echo json_encode(url(getCurrentLocale().'/admin/addfile/')); ?>,
            urls_advice = <?php echo json_encode(url(getCurrentLocale().'/admin/addadvice/')); ?>,
            urls_recipe = <?php echo json_encode(url(getCurrentLocale().'/admin/addrecipe/')); ?>,
            url_day = <?php echo json_encode(url(getCurrentLocale().'/admin/days/')); ?>,
            
            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/healthy/resources/views/admin/packages/form.blade.php ENDPATH**/ ?>