You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BillResource.php 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace App\Filament\Company\Resources\Purchases;
  3. use App\Filament\Company\Resources\Purchases\BillResource\Pages;
  4. use App\Models\Accounting\Bill;
  5. use Filament\Forms\Form;
  6. use Filament\Resources\Resource;
  7. use Filament\Tables\Table;
  8. class BillResource extends Resource
  9. {
  10. protected static ?string $model = Bill::class;
  11. protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
  12. public static function form(Form $form): Form
  13. {
  14. return $form
  15. ->schema([
  16. //
  17. ]);
  18. }
  19. public static function table(Table $table): Table
  20. {
  21. return $table
  22. ->columns([
  23. //
  24. ]);
  25. }
  26. public static function getRelations(): array
  27. {
  28. return [
  29. //
  30. ];
  31. }
  32. public static function getPages(): array
  33. {
  34. return [
  35. 'index' => Pages\ListBills::route('/'),
  36. 'create' => Pages\CreateBill::route('/create'),
  37. 'edit' => Pages\EditBill::route('/{record}/edit'),
  38. ];
  39. }
  40. }