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

<style>
.help-block{
  color:red;
}
.is-invalid{border:1px solid red !important;}
</style>

   <?php 

$data=App\Project::all()->pluck('id','projectnm');

//dd($data);
   ?>              
<div class="col-sm-6 offset-sm-3 ">
                         <h3 class="text-center"> Assign Porject </h3> 
                                    <form method="post" action="<?php echo e(route('saveassignproject')); ?>">
<?php echo csrf_field(); ?>

<input type="hidden" name="id" value="<?php echo e(!empty($list->id)?$list->id:''); ?>" />
          <?php $__currentLoopData = ["success","error"]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(Session::has($status)): ?>
<div class="alert alert-<?php echo e($status); ?> alert-dismissible">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <strong><?php echo e($status); ?>!</strong> <?php echo e(Session::get($status)); ?> action.
</div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

<div class="form-group">
              <label for="password">Project Name</label>
<select class='<?php $__errorArgs = ['project_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control' name='project_id'>
    <option value=''>-- Select--</option>

 
<?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
 
<option value="<?php echo e($value); ?>"><?php echo e($key); ?></option>

<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

</select>
 <?php if($errors->has('project_id')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('project_id')); ?></p>
        <?php endif; ?>


            </div>



<div class="form-group">
              <label for="password">Role</label>
<select class='<?php $__errorArgs = ['role'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control' name='role'>
    <option value=''>-- Select--</option>
 <option value="superviser"> superviser</option>
<option value="labour">labour</option>
 

</select>
 <?php if($errors->has('role')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('role')); ?></p>
        <?php endif; ?>

 </div>


 <div class="form-group">
                    <label for="password">Name</label>
<input id="subcategorynm" type="text"  class="<?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control" autocomplete="off" name="name"     >
 <?php if($errors->has('name')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('name')); ?></p>
        <?php endif; ?>
       </div>

 <div class="form-group">
                                            <label for="password">Email</label>
<input id="subcategorynm" type="text"  class="<?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control" autocomplete="off" name="email"    >
 <?php if($errors->has('email')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('email')); ?></p>
        <?php endif; ?>
  </div>


 <div class="form-group">
                                            <label for="password">Password</label>
<input id="subcategorynm" type="text"  class="<?php $__errorArgs = ['subcategorynm'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control" autocomplete="off" name="password"     >
 <?php if($errors->has('subcategorynm')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('subcategorynm')); ?></p>
        <?php endif; ?>
              </div>

 <div class="form-group">
                                            <label for="password">Openin Balance</label>
<input id="subcategorynm" type="text"  class="<?php $__errorArgs = ['subcategorynm'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control" autocomplete="off" name="opening_balance"     >
 <?php if($errors->has('subcategorynm')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('subcategorynm')); ?></p>
        <?php endif; ?>
              </div>







   


<div class="col-sm-12 text-center">
<button type="submit" name="change" class="btn btn-primary" >create</button>

</div>
 </form>
                             
        </div>



     <?php $__env->stopSection(); ?>
             
<?php echo $__env->make('layout/master2', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/utjn1ubt98bo/public_html/sangyatraders.com/admin/resources/views/assignproject.blade.php ENDPATH**/ ?>