2024-07-30 16:13:21 +00:00
|
|
|
<div>
|
2024-07-31 16:45:14 +00:00
|
|
|
<x-form::form wire:submit.prevent="{{ $action }}">
|
|
|
|
<x-form::input group-class="mb-3" type="text" wire:model="name" id="name" label="name" />
|
|
|
|
<x-form::quill group-class="mb-3" type="text" wire:model="description" id="description" label="description" />
|
|
|
|
<x-form::input group-class="mb-3" type="text" wire:model="schedule" id="schedule" label="schedule" />
|
2024-08-06 06:31:51 +00:00
|
|
|
<x-form::select group-class="mb-3" wire:model.live="hosts" label="Livewire Select" :options="$hosts_available" placeholder="Select value..." multiple />
|
|
|
|
|
|
|
|
@foreach($hosts as $host_id)
|
|
|
|
<x-form::select group-class="mb-3" wire:model="hosts_tasks.{{ $host_id }}" label="Select Tasks for Host {{ $hosts_available[$host_id] }}" :options="$hosts_tasks_available" placeholder="Select value..." multiple />
|
|
|
|
@endforeach
|
|
|
|
|
2024-07-31 16:45:14 +00:00
|
|
|
<x-form::button class="btn-primary" type="submit">Create</x-form::button>
|
2024-08-06 06:31:51 +00:00
|
|
|
@dump($hosts_tasks)
|
2024-07-31 16:45:14 +00:00
|
|
|
</x-form::form>
|
2024-07-30 16:13:21 +00:00
|
|
|
</div>
|