<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <h2 class="bg-gradient-to-r from-teal-700 via-cyan-700 to-violet-700 bg-clip-text text-2xl font-bold tracking-tight text-transparent">
            <?php echo e(__('Panel principal')); ?>

        </h2>
     <?php $__env->endSlot(); ?>

    <div class="py-12">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
            <div class="poskn-card overflow-hidden sm:rounded-2xl">
                <div class="border-b border-teal-200/90 bg-gradient-to-r from-teal-50 to-cyan-50/80 px-6 py-4">
                    <p class="text-lg font-semibold text-teal-900"><?php echo e(__('Sesión iniciada correctamente.')); ?></p>
                </div>
                <div class="p-6 text-slate-900">
                    <?php
                        $roleLabels = [
                            'administrador' => __('Administrador (acceso total)'),
                            'gerente' => __('Gerente'),
                            'medico' => __('Médico'),
                            'cajero' => __('Cajero'),
                        ];
                    ?>
                    <?php if(auth()->user()->roles->isNotEmpty()): ?>
                        <p class="mt-3 text-sm text-slate-700">
                            <?php echo e(__('Roles asignados')); ?>:
                            <?php echo e(auth()->user()->roles->pluck('name')->map(fn ($n) => $roleLabels[$n] ?? $n)->join(', ')); ?>

                        </p>
                    <?php else: ?>
                        <p class="mt-3 text-sm font-medium text-amber-800">
                            <?php echo e(__('Sin rol asignado. Un administrador debe asignarte un rol en el sistema.')); ?>

                        </p>
                    <?php endif; ?>
                </div>
            </div>

            <?php if(auth()->user()->can('clients.view') || auth()->user()->can('appointments.view') || auth()->user()->can('inventory.view') || auth()->user()->can('pos.use')): ?>
                <div>
                    <h3 class="mb-4 text-xs font-bold uppercase tracking-widest text-teal-800"><?php echo e(__('Accesos rápidos')); ?></h3>
                    <div class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('clients.view')): ?>
                            <a href="<?php echo e(route('clinica.hub')); ?>"
                               class="group block rounded-2xl border-2 border-indigo-300/90 bg-gradient-to-br from-white to-indigo-50 p-5 shadow-md shadow-slate-200/50 transition hover:border-indigo-500 hover:shadow-lg hover:shadow-indigo-500/15">
                                <span class="text-base font-bold text-indigo-950"><?php echo e(__('Buscar expediente')); ?></span>
                                <p class="mt-2 text-sm text-slate-700"><?php echo e(__('Código REP (titular) o PAC (paciente).')); ?></p>
                            </a>
                            <a href="<?php echo e(route('clients.index')); ?>"
                               class="group block rounded-2xl border-2 border-violet-300/90 bg-gradient-to-br from-white to-violet-50 p-5 shadow-md shadow-slate-200/50 transition hover:border-violet-500 hover:shadow-lg hover:shadow-violet-500/15">
                                <span class="text-base font-bold text-violet-950"><?php echo e(__('Clientes y pacientes')); ?></span>
                                <p class="mt-2 text-sm text-slate-700"><?php echo e(__('Titulares, mascotas e historias clínicas.')); ?></p>
                            </a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('appointments.view')): ?>
                            <a href="<?php echo e(route('clinica.appointments.index')); ?>"
                               class="group block rounded-2xl border-2 border-fuchsia-300/90 bg-gradient-to-br from-white to-fuchsia-50 p-5 shadow-md shadow-slate-200/50 transition hover:border-fuchsia-500 hover:shadow-lg hover:shadow-fuchsia-500/15">
                                <span class="text-base font-bold text-fuchsia-950"><?php echo e(__('Citas')); ?></span>
                                <p class="mt-2 text-sm text-slate-700"><?php echo e(__('Agenda del día y seguimiento.')); ?></p>
                            </a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('inventory.view')): ?>
                            <a href="<?php echo e(route('products.index')); ?>"
                               class="group block rounded-2xl border-2 border-cyan-300/90 bg-gradient-to-br from-white to-cyan-50 p-5 shadow-md shadow-slate-200/50 transition hover:border-cyan-500 hover:shadow-lg hover:shadow-cyan-500/15">
                                <span class="text-base font-bold text-cyan-950"><?php echo e(__('Inventario')); ?></span>
                                <p class="mt-2 text-sm text-slate-700"><?php echo e(__('Productos, stock y códigos.')); ?></p>
                            </a>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('pos.use')): ?>
                            <a href="<?php echo e(route('pos.index')); ?>"
                               class="group block rounded-2xl border-2 border-emerald-300/90 bg-gradient-to-br from-white to-emerald-50 p-5 shadow-md shadow-slate-200/50 transition hover:border-emerald-500 hover:shadow-lg hover:shadow-emerald-500/15">
                                <span class="text-base font-bold text-emerald-950"><?php echo e(__('Punto de venta')); ?></span>
                                <p class="mt-2 text-sm text-slate-700"><?php echo e(__('Cobros y tickets de venta.')); ?></p>
                            </a>
                        <?php endif; ?>
                    </div>
                </div>
            <?php endif; ?>
        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\wamp64\www\vet\resources\views/dashboard.blade.php ENDPATH**/ ?>