{{-- ? To set: * required: route as string to view route for show animated button * or * modal_id as string to Modal ID optional: color as string , color options: success, info, warning, danger btn_text as string , btn_fa_icon as string without "fa-", btn_icon as string name of svg, sticky as boolean to fix at the top, btn_title as string btn_css as string ? To implement in Blade: * @includeIf('layouts.components.btn_route_animated', ['route' => 'example.create']) --}} @if (isset($route) || isset($modal_id))
@if (isset($route)) @if (empty($btn_icon)) @endif @if (!empty($btn_icon)) @includeIf('layouts.components.icon', [ 'name' => $btn_icon, 'width' => 20, 'class' => 'bg-light rounded' ]) @endif {{ $btn_text ?? "Neuer Eintrag" }} @elseif (isset($modal_id)) @endif
@endif