refactor: reorder class properties and apply minor formatting adjustments across Filament pages.
This commit is contained in:
parent
7761eaed2e
commit
d355af39af
@ -27,6 +27,8 @@ class AdminVerification extends Page implements HasActions, HasForms
|
|||||||
{
|
{
|
||||||
use HasPageShield, InteractsWithActions, InteractsWithForms;
|
use HasPageShield, InteractsWithActions, InteractsWithForms;
|
||||||
|
|
||||||
|
public string $filterStatus = 'all';
|
||||||
|
|
||||||
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-user-group';
|
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-user-group';
|
||||||
@ -39,12 +41,10 @@ class AdminVerification extends Page implements HasActions, HasForms
|
|||||||
|
|
||||||
protected static ?string $title = 'Verifikasi Rekanan';
|
protected static ?string $title = 'Verifikasi Rekanan';
|
||||||
|
|
||||||
protected string $view = 'filament.pages.admin-verification';
|
|
||||||
|
|
||||||
public string $filterStatus = 'all';
|
|
||||||
|
|
||||||
protected VerificationService $verificationService;
|
protected VerificationService $verificationService;
|
||||||
|
|
||||||
|
protected string $view = 'filament.pages.admin-verification';
|
||||||
|
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
$this->verificationService = app(VerificationService::class);
|
$this->verificationService = app(VerificationService::class);
|
||||||
|
|||||||
@ -22,27 +22,27 @@ class Company extends Page
|
|||||||
{
|
{
|
||||||
use HasPageShield;
|
use HasPageShield;
|
||||||
|
|
||||||
protected string $view = 'filament.pages.company';
|
public ?CompanyModel $company = null;
|
||||||
|
|
||||||
protected static ?string $title = 'Perusahaan';
|
public array $data = [];
|
||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::BuildingOffice2;
|
|
||||||
|
|
||||||
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
||||||
|
|
||||||
protected static ?int $navigationSort = 3;
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::BuildingOffice2;
|
||||||
|
|
||||||
protected static ?string $navigationLabel = 'Perusahaan';
|
protected static ?string $navigationLabel = 'Perusahaan';
|
||||||
|
|
||||||
protected static ?string $slug = 'manage/company';
|
protected static ?int $navigationSort = 3;
|
||||||
|
|
||||||
protected static ?string $recordTitleAttribute = 'name';
|
protected static ?string $recordTitleAttribute = 'name';
|
||||||
|
|
||||||
public ?CompanyModel $company = null;
|
protected static ?string $slug = 'manage/company';
|
||||||
|
|
||||||
|
protected static ?string $title = 'Perusahaan';
|
||||||
|
|
||||||
public ?VerificationRequest $verificationRequest = null;
|
public ?VerificationRequest $verificationRequest = null;
|
||||||
|
|
||||||
public array $data = [];
|
protected string $view = 'filament.pages.company';
|
||||||
|
|
||||||
public function mount(): void
|
public function mount(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@ -27,33 +27,33 @@ class Media extends Page
|
|||||||
{
|
{
|
||||||
use HasPageShield;
|
use HasPageShield;
|
||||||
|
|
||||||
protected string $view = 'filament.pages.media';
|
public ?Company $company = null;
|
||||||
|
|
||||||
protected static ?string $title = 'Media';
|
public array $data = [];
|
||||||
|
|
||||||
|
public ?PartnerMedia $media = null;
|
||||||
|
|
||||||
protected static ?string $model = PartnerMedia::class;
|
protected static ?string $model = PartnerMedia::class;
|
||||||
|
|
||||||
|
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::Newspaper;
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::Newspaper;
|
||||||
|
|
||||||
protected static ?string $navigationLabel = 'Media';
|
protected static ?string $navigationLabel = 'Media';
|
||||||
|
|
||||||
protected static ?int $navigationSort = 4;
|
protected static ?int $navigationSort = 4;
|
||||||
|
|
||||||
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
|
||||||
|
|
||||||
protected static ?string $slug = 'manage/media';
|
|
||||||
|
|
||||||
protected static ?string $recordTitleAttribute = 'name';
|
protected static ?string $recordTitleAttribute = 'name';
|
||||||
|
|
||||||
public ?Company $company = null;
|
|
||||||
|
|
||||||
public ?PartnerMedia $media = null;
|
|
||||||
|
|
||||||
public ?VerificationRequest $verificationRequest = null;
|
|
||||||
|
|
||||||
public bool $restricted = false;
|
public bool $restricted = false;
|
||||||
|
|
||||||
public array $data = [];
|
protected static ?string $slug = 'manage/media';
|
||||||
|
|
||||||
|
protected static ?string $title = 'Media';
|
||||||
|
|
||||||
|
public ?VerificationRequest $verificationRequest = null;
|
||||||
|
|
||||||
|
protected string $view = 'filament.pages.media';
|
||||||
|
|
||||||
public function mount(): void
|
public function mount(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@ -25,26 +25,26 @@ class Verification extends Page implements HasActions, HasForms
|
|||||||
{
|
{
|
||||||
use HasPageShield, InteractsWithActions, InteractsWithForms;
|
use HasPageShield, InteractsWithActions, InteractsWithForms;
|
||||||
|
|
||||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::CheckBadge;
|
public ?Company $company = null;
|
||||||
|
|
||||||
protected static ?string $title = 'Verifikasi';
|
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
||||||
|
|
||||||
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::CheckBadge;
|
||||||
|
|
||||||
protected static ?string $navigationLabel = 'Verifikasi';
|
protected static ?string $navigationLabel = 'Verifikasi';
|
||||||
|
|
||||||
protected static ?int $navigationSort = 6;
|
protected static ?int $navigationSort = 6;
|
||||||
|
|
||||||
protected static string|UnitEnum|null $navigationGroup = 'Kelola';
|
|
||||||
|
|
||||||
protected static ?string $slug = 'manage/verification';
|
protected static ?string $slug = 'manage/verification';
|
||||||
|
|
||||||
protected string $view = 'filament.pages.verification';
|
protected static ?string $title = 'Verifikasi';
|
||||||
|
|
||||||
public ?Company $company = null;
|
|
||||||
|
|
||||||
public ?VerificationRequest $verificationRequest = null;
|
public ?VerificationRequest $verificationRequest = null;
|
||||||
|
|
||||||
protected VerificationService $verificationService;
|
protected VerificationService $verificationService;
|
||||||
|
|
||||||
|
protected string $view = 'filament.pages.verification';
|
||||||
|
|
||||||
public function boot(): void
|
public function boot(): void
|
||||||
{
|
{
|
||||||
$this->verificationService = app(VerificationService::class);
|
$this->verificationService = app(VerificationService::class);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user