@if(isset($licenseWarning) && $licenseWarning)
    @php
        $status = $licenseStatus ?? ['valid' => false, 'message' => 'License validation required'];
    @endphp
    
    @if($status['valid'] !== true || $status['can_use'] !== true)
        <div class="bg-yellow-50 dark:bg-yellow-900/20 border-l-4 border-yellow-400 dark:border-yellow-600 p-4 mb-4">
            <div class="flex items-start">
                <div class="flex-shrink-0">
                    <svg class="h-5 w-5 text-yellow-400" fill="currentColor" viewBox="0 0 20 20">
                        <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"></path>
                    </svg>
                </div>
                <div class="ml-3 flex-1">
                    <h3 class="text-sm font-medium text-yellow-800 dark:text-yellow-300">
                        License Warning
                    </h3>
                    <div class="mt-2 text-sm text-yellow-700 dark:text-yellow-400">
                        <p>{{ $status['message'] ?? 'Your license requires attention.' }}</p>
                        <p class="mt-1">
                            <a href="{{ route('admin.license.index') }}" class="font-medium underline hover:text-yellow-900 dark:hover:text-yellow-200">
                                View License Status →
                            </a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    @endif
@endif






