Advertisement
Guest User

Untitled

a guest
Aug 10th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.92 KB | None | 0 0
  1. <div class="form-group{{ $errors->has('foreman') ? ' has-error' : '' }} required">
  2.                                     <label for="foreman" class="col-md-4 control-label">Foreman</label>
  3.  
  4.                                     <div class="col-md-6">
  5.                                    
  6.                                         <select class="selectpicker form-control input-small" name="foreman_select" data-live-search="true" data-header="Select Foreman...">
  7.                                         @foreach($company->employees->sortBy('first_name') as $employee)
  8.                                             @if(($employee->employee_classification_id == 8) && ($employee->crew_id == 0) && ($employee->is_deleted == 0))
  9.                                                 <option value="{{ $employee->id }}">{{ $employee->first_name . ' ' . $employee->last_name }}</option>
  10.                                             @endif
  11.                                         @endforeach
  12.                                         </select>
  13.  
  14.                                         @if ($errors->has('foreman'))
  15.                                             <span class="help-block">
  16.                                                 <strong>{{ $errors->first('foreman') }}</strong>
  17.                                             </span>
  18.                                         @endif
  19.                                     </div>
  20.                                 </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement