2026-08-01 00:11:06 +02:00
|
|
|
@props([
|
|
|
|
|
'title',
|
|
|
|
|
'close',
|
|
|
|
|
'maxWidth' => 'lg',
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
@php
|
|
|
|
|
$maxWidthClass = [
|
|
|
|
|
'sm' => 'max-w-sm',
|
|
|
|
|
'md' => 'max-w-md',
|
|
|
|
|
'lg' => 'max-w-lg',
|
|
|
|
|
'xl' => 'max-w-xl',
|
|
|
|
|
'2xl' => 'max-w-2xl',
|
|
|
|
|
][$maxWidth];
|
|
|
|
|
@endphp
|
|
|
|
|
|
|
|
|
|
<div class="fixed inset-0 z-50 overflow-y-auto" role="dialog" aria-modal="true" aria-labelledby="modal-title">
|
|
|
|
|
<div class="flex min-h-full items-center justify-center p-4">
|
2026-08-10 01:47:30 +02:00
|
|
|
<div class="fixed inset-0 bg-gray-900/50 backdrop-blur-xs transition-opacity" wire:click="{{ $close }}"></div>
|
2026-08-01 00:11:06 +02:00
|
|
|
|
2026-08-10 19:40:22 +02:00
|
|
|
<div class="relative z-10 w-full {{ $maxWidthClass }} max-h-[90vh] overflow-y-auto rounded-lg bg-white dark:bg-gray-800 p-6 text-left shadow-xl">
|
2026-08-01 00:11:06 +02:00
|
|
|
<div class="flex items-center justify-between mb-4">
|
2026-08-10 19:40:22 +02:00
|
|
|
<h3 id="modal-title" class="text-lg font-medium text-gray-900 dark:text-gray-100">{{ $title }}</h3>
|
|
|
|
|
<button type="button" wire:click="{{ $close }}" class="text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300">
|
2026-08-01 00:11:06 +02:00
|
|
|
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
|
|
|
|
|
</svg>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{{ $slot }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|