You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monitor-doc/app/Http/Controllers/GeneralController.php

22 lines
469 B
PHTML

<?php
namespace App\Http\Controllers;
use App\Models\Document;
2 years ago
use App\Models\DocumentReminder;
use Illuminate\Http\Request;
class GeneralController extends Controller
{
2 years ago
public function index()
{
return inertia('Dashboard', [
'count_active' => 0,
'count_update' => 0,
'count_expired' => 0,
'count_total' => 0,
2 years ago
'events' => DocumentReminder::with('document.type')->get(),
]);
}
}