@php use Illuminate\Support\Str; @endphp @props([ 'label' => '', 'tagName' => '', 'icon' => 'ti ti-pencil-plus', ]) @php $tagOffcanvas = ucfirst(Str::camel($tagName)); $helperTag = Str::kebab($tagName); $ariaControls = "'offcanvas{$tagOffcanvas}"; $dataBsToggle = 'offcanvas'; $dataBsTarget = "#offcanvas{$tagOffcanvas}"; $onclick = "window.formHelpers['{$helperTag}'].reloadOffcanvas('create')"; @endphp