singleloginsystem/app/Data/Ui/Dashboard/ServiceAppDto.php
= 0ca7361a22 Feat: user dashboard with active services
- Added `UserAppAccessService` for retrieving active services by user with detailed role and permission validation.
- Created `ServiceAppDto` to standardize service data for UI rendering.
- Enhanced user dashboard layout and Livewire component with computed services, role-based restricted access, and expiring service warnings.
- Updated dashboard blade views for improved user experience and dynamic active services display.
2026-05-21 11:44:57 +00:00

20 lines
360 B
PHP

<?php
declare(strict_types=1);
namespace App\Data\Ui\Dashboard;
use Spatie\LaravelData\Data;
class ServiceAppDto extends Data
{
public function __construct(
public int $id,
public string $name,
public string $slug,
public string $duration,
public int $days_remaining,
public bool $is_warning,
) {}
}