Роли, переделывание отчета, изменение на главной странице

This commit is contained in:
brusnitsyn
2026-01-11 23:37:18 +09:00
parent eb019504d7
commit d4f077cdaf
59 changed files with 2099 additions and 366 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Http\Controllers\Web;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Inertia\Inertia;
class ReportController extends Controller
{
public function index(Request $request)
{
$user = $request->user();
$department = $user->department;
$beds = $department->metrikaDefault()->where('rf_metrika_item_id', 1)->first()->value;
return Inertia::render('Report/Index', [
'department' => [
'beds' => $beds
],
]);
}
}