
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['aboveNav' => true]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['aboveNav' => true]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars); ?>

<div data-pwa-install hidden
     x-data="{
        open: localStorage.getItem('pwa_dismissed_until') ? Date.now() > Number(localStorage.getItem('pwa_dismissed_until')) : true,
        dismiss() {
            this.open = false;
            localStorage.setItem('pwa_dismissed_until', String(Date.now() + 7 * 24 * 60 * 60 * 1000));
            const el = this.$el.closest('[data-pwa-install]');
            if (el) el.setAttribute('hidden', '');
        }
     }"
     x-show="open"
     x-cloak
     class="<?php echo \Illuminate\Support\Arr::toCssClasses([
        'fixed inset-x-4 md:hidden z-40 animate-slide-up',
        'bottom-[calc(5.75rem+env(safe-area-inset-bottom))]' => $aboveNav,
        'bottom-[max(1rem,env(safe-area-inset-bottom))]' => ! $aboveNav,
     ]); ?>">
    <div class="card-glass p-4 flex items-center gap-3">
        <div class="w-12 h-12 rounded-xl bg-grad-brand text-white flex items-center justify-center flex-shrink-0 shadow-soft">
            <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/></svg>
        </div>
        <div class="flex-1 min-w-0">
            <p class="text-sm font-semibold text-ink-900">Instala AsignaPro</p>
            <p class="text-xs text-ink-500">Acceso rápido desde tu pantalla de inicio.</p>
            <p data-pwa-ios-hint hidden class="mt-1 text-[11px] font-semibold text-brand-700">En iPhone usa Compartir → Agregar a inicio.</p>
        </div>
        <button type="button" data-pwa-install-trigger class="btn btn-sm btn-primary">Instalar</button>
        <button @click.prevent="dismiss()" class="text-ink-400 hover:text-ink-700 p-1" aria-label="Cerrar">
            <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/></svg>
        </button>
    </div>
</div>
<?php /**PATH /Applications/XAMPP/xamppfiles/htdocs/CitasSoft/resources/views/components/pwa-install-banner.blade.php ENDPATH**/ ?>