Franco Miranda
Franco Miranda
FFilament
Created by Franco Miranda on 3/21/2024 in #❓┊help
Rendering a Table in a Livewire Component within a Modal
Solved. I was missing a blade file. ->modalContent(view('components.custom-list-solicitudes-conductores')) <div> @livewire('list-solicitudes-conductores') </div>
9 replies
FFilament
Created by Franco Miranda on 3/21/2024 in #❓┊help
Rendering a Table in a Livewire Component within a Modal
SolicitudConductorTableComponents::schema() does return the right columns. Any other suggestions?
9 replies
FFilament
Created by Franco Miranda on 3/21/2024 in #❓┊help
Rendering a Table in a Livewire Component within a Modal
up
9 replies
FFilament
Created by Franco Miranda on 3/21/2024 in #❓┊help
Rendering a Table in a Livewire Component within a Modal
No description
9 replies
FFilament
Created by Franco Miranda on 3/21/2024 in #❓┊help
Rendering a Table in a Livewire Component within a Modal
Sorry, i don't know how to quote correctly the code.
9 replies
FFilament
Created by Franco Miranda on 6/15/2023 in #❓┊help
Persist and save information from modal additional inputs
Thanks it worked and solves my fill issue.
4 replies
FFilament
Created by Franco Miranda on 6/15/2023 in #❓┊help
Persist and save information from modal additional inputs
Right now I've been trying this inside action:
->action(function (array $data, $component, $livewire) use($get, $set): void {
//get the values of form with $data
$options = $data['options'] ?? [];
//get all the sections in form, each section has multiple fields
$sectionsForm = $component->getLivewire()->data['sections'];

foreach ($sectionsForm as $section) {
foreach ($section['options'] as $field) {
if ($field['options'] == $data['id']) {
append $formFieldModel['options'] to $field['options']
$mergedOptions = array_merge($field['options'], $options['options']);
$field['options'] = $mergedOptions;

//This works inside this if
}
}
}
}

//But here is lost
->action(function (array $data, $component, $livewire) use($get, $set): void {
//get the values of form with $data
$options = $data['options'] ?? [];
//get all the sections in form, each section has multiple fields
$sectionsForm = $component->getLivewire()->data['sections'];

foreach ($sectionsForm as $section) {
foreach ($section['options'] as $field) {
if ($field['options'] == $data['id']) {
append $formFieldModel['options'] to $field['options']
$mergedOptions = array_merge($field['options'], $options['options']);
$field['options'] = $mergedOptions;

//This works inside this if
}
}
}
}

//But here is lost
4 replies
FFilament
Created by Franco Miranda on 4/27/2023 in #❓┊help
'name' gone in Select multiple() after getSearchResultsUsing()
Thank you so much Dan, It worked !
4 replies