@props(['title', 'message' => null, 'icon' => null])

<div class="flex flex-col items-center justify-center py-12 px-4 text-center">
    <div class="rounded-full bg-gray-100 p-4 mb-4">
        @if ($icon)
            {!! $icon !!}
        @else
            <svg class="w-8 h-8 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path>
            </svg>
        @endif
    </div>
    <h3 class="text-base font-semibold text-gray-900">{{ $title }}</h3>
    @if ($message)
        <p class="mt-1 text-sm text-gray-500 max-w-md">{{ $message }}</p>
    @endif
    @if ($slot->isNotEmpty())
        <div class="mt-5">{{ $slot }}</div>
    @endif
</div>
