16 lines
741 B
PHP
16 lines
741 B
PHP
@if(!empty($has_pp_projects) && !empty($projects_grouped))
|
|
<div class="form-group">
|
|
{!! Form::label('project_id', __('managementtools::lang.select_project')) !!}
|
|
<select name="project_id" class="form-control select2" style="width:100%">
|
|
<option value="">@lang('messages.please_select')</option>
|
|
@foreach($projects_grouped as $group_label => $projects)
|
|
<optgroup label="{{ $group_label }}">
|
|
@foreach($projects as $pid => $pname)
|
|
<option value="{{ $pid }}" @if(isset($selected_project_id) && (int)$selected_project_id === (int)$pid) selected @endif>{{ $pname }}</option>
|
|
@endforeach
|
|
</optgroup>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
@endif
|