feat(wallets): implement wallet and transaction management with associated models, policies, and resources
This commit is contained in:
19
app/Filament/Resources/Wallets/Pages/EditWallet.php
Normal file
19
app/Filament/Resources/Wallets/Pages/EditWallet.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Wallets\Pages;
|
||||
|
||||
use App\Filament\Resources\Wallets\WalletResource;
|
||||
use Filament\Actions\ViewAction;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditWallet extends EditRecord
|
||||
{
|
||||
protected static string $resource = WalletResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
ViewAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
11
app/Filament/Resources/Wallets/Pages/ListWallets.php
Normal file
11
app/Filament/Resources/Wallets/Pages/ListWallets.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Wallets\Pages;
|
||||
|
||||
use App\Filament\Resources\Wallets\WalletResource;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListWallets extends ListRecords
|
||||
{
|
||||
protected static string $resource = WalletResource::class;
|
||||
}
|
||||
19
app/Filament/Resources/Wallets/Pages/ViewWallet.php
Normal file
19
app/Filament/Resources/Wallets/Pages/ViewWallet.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Wallets\Pages;
|
||||
|
||||
use App\Filament\Resources\Wallets\WalletResource;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Resources\Pages\ViewRecord;
|
||||
|
||||
class ViewWallet extends ViewRecord
|
||||
{
|
||||
protected static string $resource = WalletResource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
EditAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user