
<?php $__env->startSection('content'); ?>


 <!--Contents-->
    <main>
         <div class="inner_header">
            <div class="container">
                <h2><?php echo e(__('site.edit')); ?></h2>
            </div>
            <img src="<?php echo e(url('')); ?>/assets/lamis/images/home-topr.png" alt="" class="slider_shape">
        </div>
      
        <section class="registeration">
               <?php if($errors->any()): ?>
      <div class="alert alert-danger">
          <ul>
              <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <li><?php echo e($error); ?></li>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </ul>
      </div>
  <?php endif; ?>
            <div class="container">
                <div class="text-content text-center">
                    <h4><?php echo e(__('site.edit')); ?></h4>
                </div>
                    <div class="form-container">
                       <form method="post" action="<?php echo e(url(getCurrentLocale().'/update/project/'.$project->id)); ?>">
                        <?php echo csrf_field(); ?>
                            <div class="row">
                                
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                    <label><?php echo e(__('site.project_name')); ?></label>
                                    <input type="text" name="project_name" class="form-control" placeholder="<?php echo e(__('site.project_name')); ?>  ..." value="<?php echo e($project->project_name); ?>">
            
                                </div>
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                   
                                        <label><?php echo e(__('site.idea')); ?></label>
                                         <input type="text" name="idea" class="form-control" placeholder="<?php echo e(__('site.idea')); ?>  ..." value="<?php echo e($project->idea); ?>">
            
                                    
                                </div>
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                    <div class="select-container">
                                         <label><?php echo e(__('site.field')); ?></label>
                                        <select name="field_id" class="form-control">
                                            <?php $__currentLoopData = $fields; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option <?php if($project->field_id == $row->id): ?> selected <?php endif; ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                          </select>
                                    </div>
                                </div>
                               
                                 <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                     <div class="select-container">
                                    <label><?php echo e(__('site.type_idea')); ?> </label>
                                      <select name="idea_id" class="form-control">
                                            
                                            <?php $__currentLoopData = $ideas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option <?php if($project->idea_id == $row->id): ?> selected <?php endif; ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                          </select>
                                    
                                </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                    <div class="select-container">
                                         <label><?php echo e(__('site.level')); ?></label>
                                        <select id="inputState" name="level_id" class="form-control">
                                            <?php $__currentLoopData = $levels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option <?php if($project->level_id == $row->id): ?> selected <?php endif; ?> value="<?php echo e($row->id); ?>"><?php echo e($row->name); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                          </select>
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 pt-4">
                                    <label><?php echo e(__('site.team_work')); ?></label>
                                    <div class="present-radios">
                                        <div class="form-check">
                                            <label class="form-check-label" for="yes">
                                                <input type="radio"  class="form-check-input" <?php if($project->team_work == 'yes'): ?> checked="checked" <?php endif; ?>  name="team_work"  id="yes" value="yes">
                                                 <span class="checkmark"></span>
                                                 <span class="text"><?php echo e(__('site.yes')); ?></span>
                                              
                                            </label>
                                        </div>
                                        <div class="form-check">
                                            <label class="form-check-label" for="no">
                                                <input class="form-check-input" type="radio" name="team_work"  <?php if($project->team_work == 'no'): ?> checked="checked" <?php endif; ?> id="no" value="no">
                                                <span class="checkmark"></span>
                                                <span class="text"><?php echo e(__('site.no')); ?></span>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 pt-4">
                                    <label><?php echo e(__('site.license')); ?></label>
                                    <div class="present-radios">
                                        <div class="form-check">
                                            <label class="form-check-label" for="yes-licence">
                                                <input type="radio" class="form-check-input" <?php if($project->license == 'yes'): ?> checked="checked" <?php endif; ?>  name="license"  id="yes-licence" value="yes">
                                                 <span class="checkmark"></span>
                                                 <span class="text"><?php echo e(__('site.yes')); ?></span>
                                              
                                            </label>
                                        </div>
                                        <div class="form-check">
                                            <label class="form-check-label" for="no-licence">
                                                <input class="form-check-input" type="radio" <?php if($project->license == 'no'): ?> checked="checked" <?php endif; ?> name="license"  id="no-licence" value="no">
                                                <span class="checkmark"></span>
                                                <span class="text"><?php echo e(__('site.no')); ?></span>
                                            </label>
                                        </div>
                                        <div class="form-check">
                                            <label class="form-check-label" for="other">
                                                <input class="form-check-input" type="radio" <?php if($project->license == 'other'): ?> checked="checked" <?php endif; ?> name="license"  id="other" value="other">
                                                <span class="checkmark"></span>
                                                <span class="text"><?php echo e(__('site.other')); ?></span>
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                
                                <div class="col-12">
                                     <label><?php echo e(__('site.descriptionser')); ?> </label>
                                    <textarea class="form-control" name="description" placeholder="<?php echo e(__('site.descriptionser')); ?>  ..."><?php echo e($project->description); ?></textarea>
                                </div>
                                <div class="col-12 m-auto">
                                    <button type="submit" class="btn register-btn"><?php echo e(__('site.send')); ?></button>
                                </div>
                            </div>
                       </form>
                </div>
            </div>
            <img src="<?php echo e(url('')); ?>/assets/lamis/images/home-topr.png" alt="" class="r-top wow fadeInRight slow">
            <div class="polygan c-bottom"></div>
        </section>
    </main>
    <!--End-Contents-->





<?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/project.blade.php ENDPATH**/ ?>