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 " />
2024-08-08 08:33:21 +00:00
< x - form :: select group - class = " mb-3 " wire : model = " guestor_id " label = " Livewire Select " : options = " $guestor_available " placeholder = " Select guestor... " />
< x - form :: select group - class = " mb-3 " wire : model . live = " blocking_maintenance_id " label = " Livewire Select " : options = " $maintenances_available " placeholder = " Select blocking maintenance... " />
2024-07-31 16:45:14 +00:00
< x - form :: quill group - class = " mb-3 " type = " text " wire : model = " description " id = " description " label = " description " />
2024-08-08 08:33:21 +00:00
@ if ( empty ( $blocking_maintenance_id ))
2024-07-31 16:45:14 +00:00
< x - form :: input group - class = " mb-3 " type = " text " wire : model = " schedule " id = " schedule " label = " schedule " />
2024-08-08 08:33:21 +00:00
@ else
< x - form :: input group - class = " mb-3 " type = " text " wire : model = " blocking_maintenance_offset " id = " blocking_maintenance_offset " label = " blocking_maintenance_offset " help = " you can use foloving shortcodes (w - weeks, m - months, d - days) " />
@ endif
< x - form :: input group - class = " mb-3 " type = " text " wire : model = " duration " id = " duration " label = " duration " help = " in hours (60 minutes) maximum 24h " />
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 />
2024-08-07 05:52:07 +00:00
2024-08-06 09:02:45 +00:00
@ foreach ( $hosts as $key => $host_id )
2024-08-08 08:33:21 +00:00
< x - form :: select group - class = " mb-3 " wire : key = " { { $host_id }} " wire : model = " hosts_tasks. { { $host_id }} " label = " Select Tasks for Host { { $hosts_available[$host_id] }} " : options = " $hosts_tasks_available " placeholder = " Select value... " multiple />
2024-08-06 06:31:51 +00:00
@ endforeach
2024-08-07 05:52:07 +00:00
2024-07-31 16:45:14 +00:00
< x - form :: button class = " btn-primary " type = " submit " > Create </ x - form :: button >
</ x - form :: form >
2024-08-08 08:33:21 +00:00
</ div >