v0.9.2
This commit is contained in:
commit
8f8513f802
278 files changed
+18400
No files matched your search
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
namespace IriksIT\Manager\Modules\Costs;
|
||||
|
||||
use IriksIT\Manager\Console\CostsPriceCommand;
|
||||
use IriksIT\Manager\Modules\BaseModule;
|
||||
use IriksIT\Manager\Support\Names;
|
||||
use IriksIT\Manager\Support\Permission;
|
||||
|
||||
/**
|
||||
* What the work on the site has cost: the pieces of work of its `TOKENS.md` with the tokens of each in euros, next to the hours at an
|
||||
* hourly rate, hosting and a discount. For the owner of the site; the prices come from a price source (see `Support\Costs\Ledger`).
|
||||
*/
|
||||
class CostsModule extends BaseModule
|
||||
{
|
||||
public function key(): string
|
||||
{
|
||||
return 'costs';
|
||||
}
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return 'Costs';
|
||||
}
|
||||
|
||||
public function enabledByDefault(): bool
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public function tables(): array
|
||||
{
|
||||
return ['work_costs'];
|
||||
}
|
||||
|
||||
public function permissions(): array
|
||||
{
|
||||
return [new Permission('costs.view', 'See what the work on the site has cost', 'Site')];
|
||||
}
|
||||
|
||||
public function navigation(): array
|
||||
{
|
||||
return [['label' => 'What it cost', 'section' => 'Project', 'route' => Names::route('costs.index'), 'permission' => 'costs.view', 'simple' => true, 'hint' => 'What was built, and what it cost']];
|
||||
}
|
||||
|
||||
public function commands(): array
|
||||
{
|
||||
return [CostsPriceCommand::class];
|
||||
}
|
||||
|
||||
public function views(): array
|
||||
{
|
||||
return ['costs.index' => 'Opened the costs'];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user