mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 11:15:09 -05:00
22 lines
525 B
PHP
22 lines
525 B
PHP
@php
|
|
/** @var \Illuminate\View\ComponentAttributeBag $attributes */
|
|
|
|
$addAnchorTagForModal = $attributes->has('rel') && str_contains($attributes->get('rel'), 'modal');
|
|
@endphp
|
|
|
|
@props([
|
|
'type' => 'submit'
|
|
])
|
|
|
|
@if($addAnchorTagForModal)
|
|
<a href="{{ $attributes->get('href') }}" rel="{{ $attributes->get('rel') }}">
|
|
@endif
|
|
|
|
<button type="{{ $type }}" {{ $attributes->merge(['class' => 'input-global-submit']) }}>
|
|
<span class="text-inherit">{{ $slot }}
|
|
</span>
|
|
</button>
|
|
|
|
@if($attributes)
|
|
</a>
|
|
@endif |