@props([ 'type' => 'button', 'href' => '', 'class' => 'btn', 'id' => '', ]) @if ($type == "link") merge(['href' => $href, 'class' => $class ]) }}> {{ $slot }} @else merge(['type' => 'submit', 'class' => $class ]) }}> {{ $slot }} @endif