update email template

This commit is contained in:
baodev0
2026-09-09 16:56:22 +07:00
parent d3d9f76ba0
commit 2365ef72e9
210 changed files with 6335 additions and 4688 deletions
@@ -0,0 +1,23 @@
<?php
namespace App\Integrations\Whmcs\Extractors;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\LazyCollection;
class AddonExtractor
{
public function extract(): LazyCollection
{
return DB::connection('whmcs')->table('tbladdons')->orderBy('id')->cursor();
}
/** tblpricing row for this addon, if any (type='addon'). */
public function pricing(int $addonId): ?object
{
return DB::connection('whmcs')->table('tblpricing')
->where('type', 'addon')
->where('relid', $addonId)
->first();
}
}