@props(['id', 'maxWidth']) @php $id = $id ?? md5('modal' . rand(1, 1000)); $maxWidth = [ 'sm' => 'modal-sm', 'md' => 'modal-md', 'lg' => 'modal-lg', 'xl' => 'modal-xl', 'full' => 'modal-full', ][$maxWidth ?? 'md']; @endphp