mejoras
This commit is contained in:
@@ -24,10 +24,8 @@ class DashboardController extends Controller
|
||||
|
||||
// Documentos recientes (últimos 7 días)
|
||||
$recentDocuments = Document::with(['project', 'currentVersion'])
|
||||
->where('created_at', '>=', now()->subDays(7))
|
||||
->orderBy('created_at', 'desc')
|
||||
->limit(5)
|
||||
->get();
|
||||
->limit(5);
|
||||
|
||||
// Actividad reciente
|
||||
$recentActivities = DB::table('activity_log')
|
||||
@@ -35,7 +33,9 @@ class DashboardController extends Controller
|
||||
->limit(10)
|
||||
->get();
|
||||
|
||||
return view('dashboard', compact('stats', 'recentDocuments', 'recentActivities'));
|
||||
$showSidebar = true; // Variable para mostrar el sidebar
|
||||
|
||||
return view('dashboard', compact('stats', 'recentDocuments', 'recentActivities', 'showSidebar'));
|
||||
}
|
||||
|
||||
private function calculateStorageUsed()
|
||||
|
||||
Reference in New Issue
Block a user