

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

<div class="border-item">
     <div class="row">
     <div class="form-group col-lg-5"></div>
     <div class="form-group col-lg-1">
       <a onclick="window.print()" class="btn btn-primary" style="background-color:#1561cb;border-color:#1561cb;color:white"><i class="fas fa-print"></i></a>
       </div>
    </div>
        <h1><?php echo e($system->name); ?></h1>
        <hr>
         
    <?php $__currentLoopData = $codes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$code): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <h3><?php echo e($key+1); ?>#-<?php echo e($code->name); ?></h3>
    <hr>
    <div class="row">
         <div class="form-group col-lg-12">
        <h2><?php echo e(__("meals.breakfast")); ?></h2>
        </div>
        <hr><?php $x = 1; ?>
    <?php $__currentLoopData = $code->meals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <?php if($row->type == "0"): ?>
       
        <div class="form-group col-lg-12">
            <label><?php echo e($x); ?>#</label>
            <input type="text" class="form-control <?php echo e($errors->has('description') ? 'is-invalid' : ''); ?>" disabled value='<?php echo e($row->description); ?>'/>
        </div>
        <?php $x = $x+1; ?>
        <?php endif; ?>
        
      
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


      <div class="form-group col-lg-12">
        <h2><?php echo e(__("meals.snack_breakfast")); ?></h2>
        </div>
        <hr> <?php $y = 1; ?>
    <?php $__currentLoopData = $code->meals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
   
    <?php if($row->type == "1"): ?>
        
        <div class="form-group col-lg-12">
            <label><?php echo e($y); ?>#</label>
            <input type="text" class="form-control <?php echo e($errors->has('description') ? 'is-invalid' : ''); ?>" disabled value='<?php echo e($row->description); ?>'/>
        </div>
        <?php $y = $y+1; ?>
        <?php endif; ?>
        
      
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>



      <div class="form-group col-lg-12">
        <h2><?php echo e(__("meals.launch")); ?></h2>
        </div>
        <hr> <?php $z = 1; ?>
    <?php $__currentLoopData = $code->meals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
   
    <?php if($row->type == "2"): ?>
        
        <div class="form-group col-lg-12">
            <label><?php echo e($z); ?>#</label>
            <input type="text" class="form-control <?php echo e($errors->has('description') ? 'is-invalid' : ''); ?>" disabled value='<?php echo e($row->description); ?>'/>
        </div>
        <?php $z = $z+1; ?>
        <?php endif; ?>
        
      
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


      <div class="form-group col-lg-12">
        <h2><?php echo e(__("meals.snack_launch")); ?></h2>
        </div>
        <hr><?php $a = 1; ?>
    <?php $__currentLoopData = $code->meals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    
    <?php if($row->type == "3"): ?>
    
        <div class="form-group col-lg-12">
            <label><?php echo e($a); ?>#</label>
            <input type="text" class="form-control <?php echo e($errors->has('description') ? 'is-invalid' : ''); ?>" disabled value='<?php echo e($row->description); ?>'/>
        </div>
        <?php $a = $a+1; ?>
        <?php endif; ?>
        
      
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

      <div class="form-group col-lg-12">
        <h2><?php echo e(__("meals.dinner")); ?></h2>
        </div>
        <hr><?php $b = 1; ?>
    <?php $__currentLoopData = $code->meals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    
    <?php if($row->type == "4"): ?>
      
        <div class="form-group col-lg-12">
            <label><?php echo e($b); ?>#</label>
            <input type="text" class="form-control <?php echo e($errors->has('description') ? 'is-invalid' : ''); ?>" disabled value='<?php echo e($row->description); ?>'/>
        </div>
        <?php $b = $b+1; ?>
        <?php endif; ?>
        
      
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                


        
   
</div>

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

<?php $__env->startSection('inner_js'); ?>
<script>
    function addmeal(elem){
        $("#meals").css("display", "block");
        var num = $(elem).attr('data-id');
        
        var newrow = parseInt(num)+1; 
        $(elem).attr('data-id', newrow);
        
         $.ajax({
          url : urls+'/'+num,
          type : 'GET',
          data : 'nothing',
          dataType : 'json',
          success:function(data)
          {
            $('#meals').append(data);
          }
        })
    }
     function remove(elem){
            $(elem).closest('.row').remove();
        }
</script>
    <!-- Editor JS files -->

            <script src="//cdn.tinymce.com/4/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/addmeal",
            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>
<?php $__env->stopSection(); ?>

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