@extends('admin.layouts.index-template', [ 'pageTitle' => $pageTitle, 'items' => $users, 'icon' => 'group', 'module' => 'Usuarios', 'createRoute' => route('users.create'), 'indexRoute' => route('users.index'), 'searchPlaceholder' => 'Buscar por nombre o email...', 'emptyIcon' => 'users', 'emptyTitle' => 'No hay usuarios', 'emptyMessage' => 'Comience agregando su primer usuario al sistema', 'stats' => [ 'all' => [ 'label' => 'Total', 'count' => \App\Models\User::where('id', '!=', 1)->count(), 'color' => 'primary', 'icon' => 'group' ], 'active' => [ 'label' => 'Activos', 'count' => \App\Models\User::where('status', 1)->where('id', '!=', 1)->count(), 'color' => 'success', 'icon' => 'checkbox-circle' ], 'inactive' => [ 'label' => 'Inactivos', 'count' => \App\Models\User::where('status', 0)->count(), 'color' => 'secondary', 'icon' => 'pause-circle' ], 'verified' => [ 'label' => 'Verificados', 'count' => \App\Models\User::whereNotNull('email_verified_at')->where('id', '!=', 1)->count(), 'color' => 'info', 'icon' => 'shield-check' ], 'no_image' => [ 'label' => 'Sin Imagen', 'count' => \App\Models\User::whereNull('image')->where('id', '!=', 1)->count(), 'color' => 'warning', 'icon' => 'image' ], 'recent' => [ 'label' => 'Recientes (7 días)', 'count' => \App\Models\User::where('created_at', '>=', now()->subDays(7))->where('id', '!=', 1)->count(), 'color' => 'info', 'icon' => 'time' ] ] ]) @push('css') @endpush @section('filters')