@props([ 'isEdit' => false, 'isFileUpload' => false, 'size' => 'md', // sm, md, lg, xl, full 'addNewButton' => 'yes', ])
{{-- modal trigger --}} @if ($addNewButton == 'yes') add new @endif {{-- modal overlay --}}
{{-- modal opacity --}}
@php $sizeClass = match ($size) { 'sm' => 'w-sm max-w-sm', 'md' => 'w-sm md:w-lg max-w-lg', 'lg' => 'w-sm md:w-2xl max-w-2xl', 'xl' => 'w-sm md:w-4xl max-w-4xl', 'full' => 'w-[95vw] h-[90vh]', default => 'w-sm md:w-lg max-w-lg', }; @endphp {{-- modal panel --}}
{{-- modal header --}}

{{ $isEdit ? 'Update ' : 'Write a New ' }}{{ $this->subject ?? null }}

{{ $isEdit ? 'Update' : 'Write' }} your {{ $this->subject ?? null }} content below.

{{-- from field --}} {{ $slot }} {{-- from actions --}}
Cancel