You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
5.2 KiB

4 months ago
@extends('layouts.dashboard')
@section('content')
@if(!empty($notificaciones))
<div class="bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700 p-4 mb-4">
<ul class="list-disc pl-5">
@foreach($notificaciones as $nota)
<li>{{ $nota }}</li>
@endforeach
</ul>
</div>
@endif
4 months ago
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Tarjeta de Préstamos Activos -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Préstamos Activos</h3>
<span class="text-blue-600 bg-blue-100 rounded-full p-2">
<i class="fas fa-book-reader"></i>
</span>
</div>
<p class="text-3xl font-bold text-gray-900">{{ $adminData['prestamosAceptados'] }}</p>
<p class="text-sm text-gray-500 mt-2">Préstamos actualmente activos</p>
4 months ago
</div>
<!-- Tarjeta de Usuarios Registrados -->
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Usuarios Registrados</h3>
<span class="text-green-600 bg-green-100 rounded-full p-2">
<i class="fas fa-users"></i>
</span>
</div>
<p class="text-3xl font-bold text-gray-900">{{ $adminData['totalUsers'] }}</p>
<p class="text-sm text-gray-500 mt-2">Total de usuarios en el sistema</p>
4 months ago
</div>
<!-- Tarjeta de Préstamos Pendientes -->
4 months ago
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Préstamos Pendientes</h3>
4 months ago
<span class="text-red-600 bg-red-100 rounded-full p-2">
<i class="fas fa-exclamation-circle"></i>
</span>
</div>
<p class="text-3xl font-bold text-gray-900">{{ $adminData['prestamosPendientes'] }}</p>
<p class="text-sm text-gray-500 mt-2">Préstamos por revisar</p>
4 months ago
</div>
<!-- Tarjeta de Total Préstamos -->
4 months ago
<div class="bg-white rounded-lg shadow p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-lg font-semibold text-gray-700">Total Préstamos</h3>
4 months ago
<span class="text-purple-600 bg-purple-100 rounded-full p-2">
<i class="fas fa-chart-line"></i>
</span>
</div>
<p class="text-3xl font-bold text-gray-900">{{ $adminData['totalPrestamos'] }}</p>
<p class="text-sm text-gray-500 mt-2">Total de préstamos registrados</p>
4 months ago
</div>
</div>
<!-- Sección de Actividad Reciente -->
<div class="mt-8 bg-white rounded-lg shadow">
<div class="p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Actividad Reciente</h2>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead>
<tr>
<th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Usuario</th>
<th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Acción</th>
<th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Fecha</th>
<th class="px-6 py-3 bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Estado</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<!-- Aquí irían los registros de actividad -->
4 months ago
</tbody>
</table>
</div>
</div>
</div>
<!-- Sección de Administración -->
<div class="mt-8 bg-white rounded-lg shadow">
<div class="p-6">
<h2 class="text-xl font-semibold text-gray-800 mb-4">Acciones de Administración</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
<a href="{{ route('usuarios') }}" class="p-4 bg-blue-50 rounded-lg hover:bg-blue-100 transition-colors">
<div class="flex items-center space-x-3">
<i class="fas fa-users text-blue-600 text-xl"></i>
<span class="text-blue-800 font-medium">Gestión de Usuarios</span>
</div>
</a>
<a href="{{ route('marca.index') }}" class="p-4 bg-green-50 rounded-lg hover:bg-green-100 transition-colors">
<div class="flex items-center space-x-3">
<i class="fas fa-trademark text-green-600 text-xl"></i>
<span class="text-green-800 font-medium">Gestión de Marcas</span>
</div>
</a>
<a href="{{ route('puestos.index') }}" class="p-4 bg-purple-50 rounded-lg hover:bg-purple-100 transition-colors">
<div class="flex items-center space-x-3">
<i class="fas fa-briefcase text-purple-600 text-xl"></i>
<span class="text-purple-800 font-medium">Gestión de Puestos</span>
</div>
</a>
</div>
</div>
</div>
4 months ago
@endsection