@props([ 'id' => null, 'title' => null, 'blur' => true, 'closeButton' => true, 'size' => null, 'contentClass' => null, 'contentAttrs' => [], 'bodyClass' => null, 'bodyAttrs' => [], 'formAction' => null, 'formMethod' => 'POST', 'formAttrs' => [], 'hasForm' => false, 'type' => null, 'buttonId' => null, 'buttonClass' => null, 'buttonLabel' => null, 'centered' => true, 'scrollable' => false, ]) @php $classes = Arr::toCssClasses(['modal', 'fade', 'modal-blur' => $blur]); $hasForm = $hasForm || $formAction; $modalContentAttributes = [...$contentAttrs, 'class' => rtrim('modal-content' . ($contentClass ? ' ' . $contentClass : ''))]; @endphp
merge(['id' => $id, 'class' => $classes])->class($classes) }} tabindex="-1" role="dialog" aria-hidden="true" data-select2-dropdown-parent="true" >
$centered, 'modal-dialog-scrollable' => $scrollable, 'modal-dialog-has-form' => $hasForm, $size ? "modal-$size" : null, ]) role="document" >
@if ($hasForm)
@csrf @endif @if ($title || $closeButton) @endif @if($type) @endif @if ($slot->isNotEmpty())
rtrim('modal-body ' . Arr::get($bodyAttrs, 'class'))])) !!}> {{ $slot }}
@else {{ $slot }} @endif @if (!empty($footer) && $footer->isNotEmpty()) @endif @if($buttonId && $buttonLabel) @endif @if ($hasForm)
@endif