@props(['value', 'dataCallbackParams' => '', 'dataOnCloseUpdateModels' => '', 'action' => null]) @php if (!Illuminate\Support\Str::contains($action, [ 'http://', 'https://' ])) { if ($action) { $action = route($action); } } $additionalAttributes = []; if ($dataCallbackParams) { $additionalAttributes['data-callback-params'] = json_encode($dataCallbackParams); } if ($dataOnCloseUpdateModels) { $additionalAttributes['data-on-close-update-models'] = json_encode($dataOnCloseUpdateModels); } $ajaxFormClass = 'lw-ajax-form'; if ($attributes->get('data-ajax') === 'false') { $ajaxFormClass = ''; } @endphp