This commit is contained in:
2025-11-10 17:58:06 +05:00
parent 60f7efd6ba
commit 8c24f00382
3 changed files with 18 additions and 4 deletions

View File

@@ -21,14 +21,29 @@ use Illuminate\Database\Eloquent\SoftDeletingScope;
class VisaMasterPaymentOrderResource extends Resource
{
protected static ?string $model = VisaMasterPaymentOrder::class;
protected static ?int $navigationSort = 1;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
protected static ?string $model = VisaMasterPaymentOrder::class;
protected static ?string $cluster = VisaMasterPaymentsCluster::class;
protected static ?string $recordTitleAttribute = 'id';
public static function getNavigationGroup(): ?string
{
return __('Visa/Master payments');
}
public static function getModelLabel(): string
{
return __('Visa/Master payment');
}
public static function getPluralModelLabel(): string
{
return __('Visa/Master payments');
}
public static function form(Schema $schema): Schema
{
return VisaMasterPaymentOrderForm::configure($schema);

View File

@@ -5,7 +5,6 @@ namespace App\Filament\Clusters\VisaMasterPayments;
use BackedEnum;
use Filament\Clusters\Cluster;
use Filament\Pages\Enums\SubNavigationPosition;
use Filament\Support\Icons\Heroicon;
class VisaMasterPaymentsCluster extends Cluster
{

View File

@@ -16,7 +16,7 @@ return new class extends Migration
$table->string('unique_id')->nullable()->unique();
$table->string('type')->nullable();
$table->string('passport_name')->nullable();
$table->string('passport_surname')->nullable();
$table->string('phone')->nullable();