first commit

Signed-off-by: Nguyen Van Nguyen <nguyennv1981@gmail.com>
This commit is contained in:
Nguyen Van Nguyen 2024-04-22 14:49:17 +07:00
parent e9f0a9ec2c
commit 0e98d45afd
16 changed files with 456 additions and 0 deletions

View file

@ -0,0 +1,64 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\AccountResource\Pages;
use App\Filament\Resources\AccountResource\RelationManagers;
use App\Models\Account;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class AccountResource extends Resource
{
protected static ?string $model = Account::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListAccounts::route('/'),
'create' => Pages\CreateAccount::route('/create'),
'edit' => Pages\EditAccount::route('/{record}/edit'),
];
}
}

View file

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\AccountResource\Pages;
use App\Filament\Resources\AccountResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateAccount extends CreateRecord
{
protected static string $resource = AccountResource::class;
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\AccountResource\Pages;
use App\Filament\Resources\AccountResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditAccount extends EditRecord
{
protected static string $resource = AccountResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\AccountResource\Pages;
use App\Filament\Resources\AccountResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListAccounts extends ListRecords
{
protected static string $resource = AccountResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View file

@ -0,0 +1,64 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\AliasResource\Pages;
use App\Filament\Resources\AliasResource\RelationManagers;
use App\Models\Alias;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class AliasResource extends Resource
{
protected static ?string $model = Alias::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListAliases::route('/'),
'create' => Pages\CreateAlias::route('/create'),
'edit' => Pages\EditAlias::route('/{record}/edit'),
];
}
}

View file

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\AliasResource\Pages;
use App\Filament\Resources\AliasResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateAlias extends CreateRecord
{
protected static string $resource = AliasResource::class;
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\AliasResource\Pages;
use App\Filament\Resources\AliasResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditAlias extends EditRecord
{
protected static string $resource = AliasResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\AliasResource\Pages;
use App\Filament\Resources\AliasResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListAliases extends ListRecords
{
protected static string $resource = AliasResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View file

@ -0,0 +1,64 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\DistributionListResource\Pages;
use App\Filament\Resources\DistributionListResource\RelationManagers;
use App\Models\DistributionList;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class DistributionListResource extends Resource
{
protected static ?string $model = DistributionList::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListDistributionLists::route('/'),
'create' => Pages\CreateDistributionList::route('/create'),
'edit' => Pages\EditDistributionList::route('/{record}/edit'),
];
}
}

View file

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\DistributionListResource\Pages;
use App\Filament\Resources\DistributionListResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateDistributionList extends CreateRecord
{
protected static string $resource = DistributionListResource::class;
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\DistributionListResource\Pages;
use App\Filament\Resources\DistributionListResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditDistributionList extends EditRecord
{
protected static string $resource = DistributionListResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\DistributionListResource\Pages;
use App\Filament\Resources\DistributionListResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListDistributionLists extends ListRecords
{
protected static string $resource = DistributionListResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

View file

@ -0,0 +1,64 @@
<?php
namespace App\Filament\Resources;
use App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\DomainResource\RelationManagers;
use App\Models\Domain;
use Filament\Forms;
use Filament\Forms\Form;
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
class DomainResource extends Resource
{
protected static ?string $model = Domain::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
public static function form(Form $form): Form
{
return $form
->schema([
//
]);
}
public static function table(Table $table): Table
{
return $table
->columns([
//
])
->filters([
//
])
->actions([
Tables\Actions\EditAction::make(),
])
->bulkActions([
Tables\Actions\BulkActionGroup::make([
Tables\Actions\DeleteBulkAction::make(),
]),
]);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => Pages\ListDomains::route('/'),
'create' => Pages\CreateDomain::route('/create'),
'edit' => Pages\EditDomain::route('/{record}/edit'),
];
}
}

View file

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateDomain extends CreateRecord
{
protected static string $resource = DomainResource::class;
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditDomain extends EditRecord
{
protected static string $resource = DomainResource::class;
protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListDomains extends ListRecords
{
protected static string $resource = DomainResource::class;
protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}