Hoan thien core finance v2

This commit is contained in:
2026-04-25 04:04:14 +00:00
parent 86216ef872
commit 002c9a8b99
39 changed files with 1308 additions and 89 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace App\Filament\Resources\Appendices;
use App\Filament\Resources\Appendices\Pages;
use App\Models\Appendix;
use App\Enums\NavigationGroup;
use Filament\Schemas\Schema;
use Filament\Resources\Resource;
use Filament\Tables\Table;
use App\Filament\Resources\Appendices\Schemas\AppendixForm;
use App\Filament\Resources\Appendices\Tables\AppendicesTable;
class AppendixResource extends Resource
{
protected static ?string $model = Appendix::class;
protected static string | \BackedEnum | null $navigationIcon = 'heroicon-o-document-text';
protected static string | \UnitEnum | null $navigationGroup = NavigationGroup::TRANSACTION->value;
protected static ?int $navigationSort = 4;
protected static ?string $modelLabel = 'Phụ lục';
protected static ?string $pluralModelLabel = 'Phụ lục HĐ';
public static function form(Schema $schema): Schema
{
return AppendixForm::configure($schema);
}
public static function table(Table $table): Table
{
return AppendicesTable::configure($table);
}
public static function getPages(): array
{
return [
'index' => Pages\ListAppendices::route('/'),
'create' => Pages\CreateAppendix::route('/create'),
'edit' => Pages\EditAppendix::route('/{record}/edit'),
];
}
}