
<?php $__env->startSection('content'); ?>
 <main>
     <div class="inner_header">
            <div class="container">
                <h2><?php echo e(__('site.projourney')); ?></h2>
            </div>
            <img src="<?php echo e(url('')); ?>/assets/lamis/images/home-topr.png" alt="" class="slider_shape">
        </div>
        
        <section class="segment">
            <div class="container">
                 <?php if(Session::has('error')): ?>
<p class="alert <?php echo e(Session::get('alert-class', 'alert-danger')); ?>"><?php echo e(Session::get('error')); ?></p>
<?php endif; ?>
 <?php if(Session::has('success')): ?>
<p class="alert <?php echo e(Session::get('alert-class', 'alert-success')); ?>"><?php echo e(Session::get('success')); ?></p>
<?php endif; ?>
                <div class="text text-center">
                    <h4><?php echo e(servicelang($service_id)); ?>

                     <?php if(projectformscheck($service_id,$project_id)): ?>
                    <a href="<?php echo e(url(getCurrentLocale().'/final/print/'.$service_id)); ?>" class="btn btn-primary" style="background-color:#AF387D;border-color:#AF387D;"><i class="fas fa-print"></i></a>
                    <?php endif; ?>
                    </h4>
                   
                </div>
                <div class="content">
                    <ul class="nav nav-tabs" id="myTab" role="tablist">
                        <?php $__currentLoopData = $forms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <li class="nav-item">
                          <a class="nav-link <?php if(Session::has('next')): ?> <?php if(Session('next') == $key): ?> active <?php endif; ?>  <?php else: ?> <?php if($key == '0'): ?> active <?php endif; ?>  <?php endif; ?> " id="home-tab" data-toggle="tab" href="#home_<?php echo e($key); ?>" role="tab" aria-controls="home" aria-selected="true"><?php echo e(formquestion($row->id)); ?></a>
                        </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                       
                    </ul>
                    <div class="tab-content" id="myTabContent">
                        
                         <?php $__currentLoopData = $forms; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="tab-pane fade show <?php if(Session::has('next')): ?> <?php if(Session('next') == $key): ?> active <?php endif; ?>  <?php else: ?> <?php if($key == '0'): ?> active <?php endif; ?>  <?php endif; ?>" id="home_<?php echo e($key); ?>" role="tabpanel" aria-labelledby="home-tab">
                            <div class="text-container">
                                <form method="POST" id="form" action="<?php echo e(url(getCurrentLocale().'/step')); ?>">
                                    <?php echo csrf_field(); ?>
                                    <div class="form-group">
                                        <input type="hidden" name="form_id" value="<?php echo e($row->id); ?>">
                                        <input type="hidden" name="service_id" value="<?php echo e($row->service->id); ?>">
                                        <input type="hidden" name="project_id" value="<?php echo e($project_id); ?>">
                                        <input type="hidden" name="current" value="<?php echo e($key); ?>">
                                        <input type="hidden" id="action_<?php echo e($key); ?>" name="action">
                                        <textarea class="form-control" name="description" id="exampleFormControlTextarea1" <?php if(checkproject()): ?> disabled <?php endif; ?> placeholder="اكتب هنا ..." rows="15"><?php if(projectformisset($row->id,$project_id)): ?> <?php echo e(projectdescription($row->id,$project_id)); ?> <?php endif; ?></textarea>
                                    </div>
                                    <div class="buttons">
                                        <button onclick="routings(<?php echo e($key); ?>,'1')" class="save-button follow-btn"><?php echo e(__('site.save_continue')); ?></button>
                                        <button onclick="routings(<?php echo e($key); ?>,'0')" class="save-button close-btn"><?php echo e(__('site.save_close')); ?></button>

                                    </div>
                                </form>
                            </div>
                        </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                       
                       
                    </div>
                </div>
            </div>
            <img src="<?php echo e(url('')); ?>/assets/lamis/images/home-topr.png" alt="" class="r-top wow fadeInRight slow">
            <img src="<?php echo e(url('')); ?>/assets/lamis/images/home-topl.png" alt="" class="l-top wow fadeInLeft slow">
            <img src="<?php echo e(url('')); ?>/assets/lamis/images/home-bottomr.png" alt="" class="r-bottom animated fadeInRight slow">
        </section>
    </main>
  <?php $__env->startPush('js'); ?>
  <script>
      function routings(elem,data){
           
          $('#action_'+elem).val(data);
         
      }
  </script>
  <?php $__env->stopPush(); ?>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('lamis.layout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/omaralyomhost/public_html/lamis/resources/views/lamis/forms.blade.php ENDPATH**/ ?>