38 lines
994 B
PHP
38 lines
994 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages;
|
|
|
|
use BackedEnum;
|
|
use Filament\Pages\Page;
|
|
use UnitEnum;
|
|
|
|
class InventoryCoverage extends Page
|
|
{
|
|
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-table-cells';
|
|
|
|
protected static string|UnitEnum|null $navigationGroup = 'Inventory';
|
|
|
|
protected static ?string $navigationLabel = 'Coverage';
|
|
|
|
protected string $view = 'filament.pages.inventory-coverage';
|
|
|
|
/**
|
|
* @var array<int, array<string, mixed>>
|
|
*/
|
|
public array $supportedPolicyTypes = [];
|
|
|
|
/**
|
|
* @var array<int, array<string, mixed>>
|
|
*/
|
|
public array $foundationTypes = [];
|
|
|
|
public function mount(): void
|
|
{
|
|
$policyTypes = config('tenantpilot.supported_policy_types', []);
|
|
$foundationTypes = config('tenantpilot.foundation_types', []);
|
|
|
|
$this->supportedPolicyTypes = is_array($policyTypes) ? $policyTypes : [];
|
|
$this->foundationTypes = is_array($foundationTypes) ? $foundationTypes : [];
|
|
}
|
|
}
|