- Removed inline data definitions from multiple dashboard components for roles, users, and connected apps, replacing them with service-based computed properties. - Added comprehensive debug and error-level logging throughout `SamlIdpService` and related controllers to improve traceability of SAML flows. - Cleaned up and centralized SAML-related logic, improving maintainability and error handling consistency. - Deleted unused `hr-permission.blade.php` component to reduce code redundancy.
37 lines
867 B
PHP
37 lines
867 B
PHP
<?php
|
|
|
|
use App\Services\AdminDashboardService;
|
|
use App\Data\Ui\Dashboard\DashboardStatsData;
|
|
use Livewire\Attributes\Computed;
|
|
use Livewire\Attributes\Layout;
|
|
use Livewire\Attributes\Title;
|
|
use Livewire\Component;
|
|
|
|
new
|
|
#[Layout('layouts.app.sidebar')]
|
|
#[Title('Dashboard')]
|
|
class extends Component {
|
|
private AdminDashboardService $service;
|
|
|
|
public function boot(AdminDashboardService $service): void
|
|
{
|
|
$this->service = $service;
|
|
}
|
|
|
|
#[Computed]
|
|
public function stats(): DashboardStatsData
|
|
{
|
|
return $this->service->getStats();
|
|
}
|
|
};
|
|
?>
|
|
|
|
<div class="flex h-full w-full flex-1 flex-col gap-4 rounded-xl">
|
|
<x-dashboard-stats :stats="$this->stats"/>
|
|
<livewire:dashboard.connected-apps/>
|
|
<livewire:dashboard.roles.manager/>
|
|
<livewire:dashboard.users.latest/>
|
|
<livewire:dashboard.users.assignments/>
|
|
</div>
|
|
|