@php
    $state = $state ?? [];
    $state = is_array($state) ? $state : [];
@endphp

<div class="rounded-xl border border-dashed border-gray-300 bg-gray-50/60 px-4 py-5 text-sm text-gray-600 dark:border-gray-700 dark:bg-gray-950/30 dark:text-gray-300">
    <div class="font-medium text-gray-900 dark:text-white">
        {{ $state['title'] ?? 'No detail available' }}
    </div>

    @if (filled($state['description'] ?? null))
        <div class="mt-1">
            {{ $state['description'] }}
        </div>
    @endif
</div>
