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]>
25 lines
548 B
PHP
25 lines
548 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Dashboard\Application\Contracts;
|
|
|
|
use App\Modules\Dashboard\Application\DTOs\PeriodFigures;
|
|
|
|
/**
|
|
* Key figures from the Reports module.
|
|
*/
|
|
interface DashboardFigures
|
|
{
|
|
/**
|
|
* Figures of the days from the first to the last (Y-m-d).
|
|
*/
|
|
public function between(string $from, string $to): PeriodFigures;
|
|
|
|
/**
|
|
* The value (VAT 0, cents) of the hours not billed yet, worked on or
|
|
* before the day.
|
|
*/
|
|
public function unbilledValueCents(string $day): int;
|
|
}
|