<div class="row">
    <div class="col-md-8">
      <div class="row">      
      <div class="col-md-6">
        <?php if(UserHelper::isAdminUser(Auth::user()->group_id)): ?>
        <div class="form-group">
          <label>Company:</label>
          <select name="company_id" id="company_id" class="form-control default-select2">
            <?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($company->id); ?>"><?php echo e($company->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </select>                    
        </div>
        <?php endif; ?>
        <div class="form-group">
          <label>Firstname <span class="required">*</span></label>
          <?php echo Form::text('firstname', old('firstname') ,['class' => 'form-control', 'required' => '']); ?>
        </div>    
        
        <div class="form-group">
          <label>Lastname <span class="required">*</span></label>
          <?php echo Form::text('lastname', old('lastname') ,['class' => 'form-control', 'required' => '']); ?>
        </div> 

        <div class="form-group">
          <label>Email <span class="required">*</span></label>
          <?php echo Form::email('email', old('email') ,['class' => 'form-control', 'required' => '']); ?>
        </div>  
        
        <div class="form-group">
          <label>Mobile Number <span class="required"></span></label>
          <?php echo Form::text('mobile_number', old('mobile_number') ,['class' => 'form-control']); ?>
        </div> 
        
        <div class="form-group">
          <label>Work Number <span class="required"></span></label>
          <?php echo Form::text('work_number', old('work_number') ,['class' => 'form-control']); ?>
        </div>    
        
        <div class="form-group">
          <label>Home Number <span class="required"></span></label>
          <?php echo Form::text('home_number', old('home_number') ,['class' => 'form-control']); ?>
        </div>   
      </div>

      <div class="col-md-6">
        <div class="form-group">
          <label>Address 1 <span class="required">*</span></label>
          <?php echo Form::text('address1', old('address1') ,['class' => 'form-control', 'required' => '']); ?>
        </div>  
        
        <div class="form-group">
          <label>Address 2 <span class="required"></span></label>
          <?php echo Form::text('address2', old('address2') ,['class' => 'form-control']); ?>
        </div>
        <div class="form-group">
          <label>City <span class="required"></span></label>
          <?php echo Form::text('city', old('city') ,['class' => 'form-control']); ?>
        </div> 
        
        <div class="form-group">
          <label>State <span class="required"></span></label>
          <?php echo Form::text('state', old('state') ,['class' => 'form-control']); ?>
        </div>  
        
        <div class="form-group">
          <label>Zip Code <span class="required">*</span></label>
          <?php echo Form::text('zip_code', old('zip_code') ,['class' => 'form-control', 'required' => '']); ?>
        </div>    
        
        <div class="form-group">
          <label>Stage <span class="required"></span></label>
          <select name="stage_id" class="form-control" id="stage_id">
            <?php $__currentLoopData = $stages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $stage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <option value="<?php echo e($stage->id); ?>"><?php echo e($stage->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </select>                    
        </div>    
        
        <div class="form-group">
          <div id="stage-status-container"></div>
        </div> 

        <div class="form-group hide date-settled-grp">
          <label>Date Settled</label>
          <?php echo Form::text('date_settled', date("Y-m-d") ,['class' => 'form-control date_settled']); ?>
        </div> 
      </div>
      </div>
      <div class="row">
        <h3 style="background-color: #3c8dbc; color: #ffffff; padding: 10px;font-size: 16px;">Other Contact Information</h3>
        <div class="col-md-6">
          <div class="form-group">
            <label>Name</label>
            <?php echo Form::text('other_name', old('firstname') ,['class' => 'form-control']); ?>
          </div>    

          <div class="form-group">
            <label>Email</label>
            <?php echo Form::email('other_email', old('other_email') ,['class' => 'form-control']); ?>
          </div>
          
          <div class="form-group">
            <label>Work Number</label>
            <?php echo Form::text('other_work_number', old('other_work_number') ,['class' => 'form-control']); ?>
          </div>  
        </div>
      </div>

    </div>

    <div class="col-md-4">

      <!-- <?php if(UserHelper::isAdminUser(Auth::user()->group_id)): ?>
        <div class="form-group">
          <div id="company-users-container"></div>           
        </div>
      <?php endif; ?>  --> 


      <span class="btn badge badge-primary" style="margin-bottom: 10px; margin-top: 10px;">Assigned to Company Funders</span>

      <div class="form-group">
        <select name="company_assigned_users[]" class="form-control company_assigned_users" id="company_assigned_users" multiple="multiple">
          <?php $__currentLoopData = $company_users_by_group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company_name => $company_users_group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <optgroup label="<?php echo e(ucwords($company_name)); ?>">
            <?php $__currentLoopData = $company_users_group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company_user_data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>    
              <option value="<?php echo e($company_user_data['user_id']); ?>"><?php echo e($company_user_data['name']); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>          
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
      </div>         

      <span class="btn badge badge-primary" style="margin-bottom: 10px; margin-top: 10px;">Assigned to Group Users</span>

      <div class="form-group">
        <select name="company_assigned_users[]" class="form-control company_assigned_users" id="company_assigned_users2" multiple="multiple">
          <?php $__currentLoopData = $users_other_groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group_name => $user_group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <optgroup label="<?php echo e(ucwords($group_name)); ?>">
            <?php $__currentLoopData = $user_group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user_d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>   
              <option value="<?php echo e($user_d['user_id']); ?>"><?php echo e($user_d['name']); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>          
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
      </div>       

    </div>
</div><?php /**PATH /home/efvyhdmy/public_html/subcrm/resources/views/contact/create_personal_info.blade.php ENDPATH**/ ?>