- 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.
20 lines
360 B
PHP
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,
|
|
) {}
|
|
}
|