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.
99 lines
4.8 KiB
99 lines
4.8 KiB
@extends('layouts.dashboard')
|
|
|
|
@section('content')
|
|
<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">25</p>
|
|
<p class="text-sm text-gray-500 mt-2">↑ 12% desde el mes pasado</p>
|
|
</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">150</p>
|
|
<p class="text-sm text-gray-500 mt-2">↑ 5% desde el mes pasado</p>
|
|
</div>
|
|
|
|
<!-- Tarjeta de Préstamos Vencidos -->
|
|
<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 Vencidos</h3>
|
|
<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">3</p>
|
|
<p class="text-sm text-gray-500 mt-2">↓ 2% desde el mes pasado</p>
|
|
</div>
|
|
|
|
<!-- Tarjeta de Préstamos del Mes -->
|
|
<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 del Mes</h3>
|
|
<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">42</p>
|
|
<p class="text-sm text-gray-500 mt-2">↑ 8% desde el mes pasado</p>
|
|
</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">
|
|
<tr>
|
|
<td class="px-6 py-4 whitespace-nowrap">
|
|
<div class="flex items-center">
|
|
<div class="flex-shrink-0 h-10 w-10">
|
|
<img class="h-10 w-10 rounded-full" src="https://ui-avatars.com/api/?name=Juan+Pérez" alt="">
|
|
</div>
|
|
<div class="ml-4">
|
|
<div class="text-sm font-medium text-gray-900">Juan Pérez</div>
|
|
<div class="text-sm text-gray-500">juan@example.com</div>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap">
|
|
<div class="text-sm text-gray-900">Solicitó préstamo</div>
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap">
|
|
<div class="text-sm text-gray-900">Hace 2 horas</div>
|
|
</td>
|
|
<td class="px-6 py-4 whitespace-nowrap">
|
|
<span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
|
|
Aprobado
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<!-- Más filas de actividad aquí -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|