<?php

namespace App\Filament\Resources\ApplynowInfoResource\Pages;

use App\Filament\Resources\ApplynowInfoResource;
use Filament\Resources\Pages\CreateRecord;
use Filament\Notifications\Notification;

class CreateApplynowInfo extends CreateRecord
{
    protected static string $resource = ApplynowInfoResource::class;

    protected function getRedirectUrl(): string
    {
        return $this->getResource()::getUrl('index');
    }

    protected function getCreatedNotification(): ?Notification
    {
        return Notification::make()
            ->success()
            ->title('Apply Now Info created')
            ->body('The Apply Now information has been created successfully.');
    }

    protected function mutateFormDataBeforeCreate(array $data): array
    {
        // Add any data transformation logic here
        return $data;
    }
} 