Everyone sees their open tasks on an agenda, their open jobs, this week's hours and quick links. Admin and management also get a lazily loaded management panel: things to do, the month so far against the previous month, jobs and late work, and everyone's workload. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
23 lines
488 B
PHP
23 lines
488 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Dashboard\Application\DTOs;
|
|
|
|
/**
|
|
* A user's hours in a week, in quarter hours: each day (Y-m-d, Monday to
|
|
* Sunday), the total and those waiting for approval.
|
|
*/
|
|
final readonly class WeekHours
|
|
{
|
|
/**
|
|
* @param array<string, int> $days
|
|
*/
|
|
public function __construct(
|
|
public string $monday,
|
|
public array $days,
|
|
public int $totalQuarters,
|
|
public int $unapprovedQuarters,
|
|
) {}
|
|
}
|