ok
Direktori : /home2/selectio/www/fms-worksuite/resources/views/components/ |
Current File : //home2/selectio/www/fms-worksuite/resources/views/components/task-selection-dropdown.blade.php |
<x-forms.select fieldId="timer_task_id" fieldName="task_id" :fieldLabel="__('app.task')" :fieldRequired="$fieldRequired" search="true"> <option value="">--</option> @foreach ($tasks as $item) <option @php $name = ''; if (!is_null($item->project_id)) { $name .= '<h5 class="f-12 text-darkest-grey">' . ucfirst($item->heading) . '</h5><div class="text-muted f-11">' . $item->project->project_name . '</div>'; } else { $name .= '<span class="text-dark-grey f-11">' . ucfirst($item->heading) . '</span>'; } @endphp data-content="{{ $name }}" value="{{ $item->id }}"> {{ $item->heading }} </option> @endforeach </x-forms.select>