<?php $__env->startSection('title', 'Dashboard'); ?>

<?php $__env->startSection('content_header'); ?>
    <h1>
        <?php if(auth()->user()->role == 'admin'): ?>
            Panel de Control (ADMINISTRADOR)
        <?php else: ?>
            Mi Cuenta (CLIENTE)
        <?php endif; ?>
    </h1>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <?php if(auth()->user()->role == 'admin'): ?>
        <div class="row">
            <div class=\"col-lg-3 col-6\">
                <div class=\"small-box bg-info\">
                    <div class=\"inner\">
                        <h3><?php echo e(\App\Models\Client::count()); ?></h3>
                        <p>Clientes Registrados</p>
                    </div>
                    <div class=\"icon\">
                        <i class=\"fas fa-users\"></i>
                    </div>
                    <a href=\"<?php echo e(route('admin.clients.index')); ?>\" class=\"small-box-footer\">Ver todos <i class=\"fas fa-arrow-circle-right\"></i></a>
                </div>
            </div>
            <div class=\"col-lg-3 col-6\">
                <div class=\"small-box bg-success\">
                    <div class=\"inner\">
                        <h3><?php echo e(\App\Models\License::where('status', 'ACTIVE')->count()); ?></h3>
                        <p>Licencias Activas</p>
                    </div>
                    <div class=\"icon\">
                        <i class=\"fas fa-key\"></i>
                    </div>
                    <a href=\"<?php echo e(route('admin.licenses.index')); ?>\" class=\"small-box-footer\">Gestionar <i class=\"fas fa-arrow-circle-right\"></i></a>
                </div>
            </div>
        </div>
    <?php else: ?>
        <div class="card card-outline card-primary">
            <div class="card-header">
                <h3 class="card-title">Mis Licencias</h3>
            </div>
            <div class="card-body">
                <div class="alert alert-info">
                    <h5><i class="icon fas fa-info"></i> Bienvenido, <?php echo e(auth()->user()->name); ?>!</h5>
                    Aquí aparecerán tus licencias de IGPos PRO activas y su estado de vencimiento.
                </div>
                <p class="text-muted">No tienes licencias vinculadas a esta cuenta de correo.</p>
            </div>
        </div>
    <?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('css'); ?>
    <link rel="stylesheet" href="/css/admin_custom.css">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
    <script> console.log('Hi!'); </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('adminlte::page', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\igpos-licenses\resources\views/home.blade.php ENDPATH**/ ?>