Implement a comprehensive financial management suite within the Filament admin panel, including new resources for payments and discount codes, along with a financial dashboard. - feat(ui): add Filament Dashboard with finance overview and transaction widgets - feat(ui): implement PaymentResource for monitoring gateway transactions - feat(ui): complete DiscountCodeResource with full CRUD and filtering - feat(wallet): add automatic wallet creation on balance retrieval - fix(wallet): resolve null handling in isFrozen() and balance viewing - fix(db): correct enum type from 'percent' to 'percentage' in discount_codes migration - fix(api): update pricing calculation endpoint to /api/v1/calculate - test: add 21 new feature and service tests covering wallet, payment, and discount logic - chore: remove obsolete PaymentGatewayService and update project status
33 lines
822 B
PHP
33 lines
822 B
PHP
<?php
|
|
|
|
namespace App\Filament\Pages;
|
|
|
|
use App\Filament\Widgets\FinanceOverviewWidget;
|
|
use App\Filament\Widgets\RecentTransactionsWidget;
|
|
use App\Filament\Widgets\TransactionChartWidget;
|
|
use Filament\Pages\Dashboard as BaseDashboard;
|
|
|
|
class Dashboard extends BaseDashboard
|
|
{
|
|
protected static ?string $navigationLabel = 'داشبورد';
|
|
protected static ?string $slug = 'dashboard';
|
|
protected static ?string $title = 'داشبورد مالی';
|
|
|
|
protected static ?string $navigationIcon = 'heroicon-o-home';
|
|
|
|
public function getHeaderWidgets(): array
|
|
{
|
|
return [
|
|
FinanceOverviewWidget::class,
|
|
];
|
|
}
|
|
|
|
public function getWidgets(): array
|
|
{
|
|
return [
|
|
TransactionChartWidget::class,
|
|
RecentTransactionsWidget::class,
|
|
];
|
|
}
|
|
}
|