Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-group{{ $errors->has('foreman') ? ' has-error' : '' }} required">
- <label for="foreman" class="col-md-4 control-label">Foreman</label>
- <div class="col-md-6">
- <select class="selectpicker form-control input-small" name="foreman_select" data-live-search="true" data-header="Select Foreman...">
- @foreach($company->employees->sortBy('first_name') as $employee)
- @if(($employee->employee_classification_id == 8) && ($employee->crew_id == 0) && ($employee->is_deleted == 0))
- <option value="{{ $employee->id }}">{{ $employee->first_name . ' ' . $employee->last_name }}</option>
- @endif
- @endforeach
- </select>
- @if ($errors->has('foreman'))
- <span class="help-block">
- <strong>{{ $errors->first('foreman') }}</strong>
- </span>
- @endif
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement