<?php

namespace App\Filament\Resources\Coupons\Pages;

use App\Filament\Resources\Coupons\CouponResource;
use App\Filament\Resources\Pages\AuditedCreateRecord;
use App\Jobs\SyncCouponToPaddle;

class CreateCoupon extends AuditedCreateRecord
{
    protected static string $resource = CouponResource::class;

    protected function afterCreate(): void
    {
        parent::afterCreate();

        SyncCouponToPaddle::dispatch($this->record);
    }
}
