removed all references to credits. now credits are completely replaced by addons.

This commit is contained in:
Codex Agent
2025-12-01 15:50:17 +01:00
parent b8e515a03c
commit 28539754a7
76 changed files with 97 additions and 2533 deletions

View File

@@ -1,42 +0,0 @@
<?php
namespace App\Notifications\Packages;
use App\Models\Tenant;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class TenantCreditsLowNotification extends Notification implements ShouldQueue
{
use Queueable;
public function __construct(
private readonly Tenant $tenant,
private readonly int $balance,
private readonly int $threshold,
) {}
public function via(object $notifiable): array
{
return ['mail'];
}
public function toMail(object $notifiable): MailMessage
{
$url = url('/tenant/billing');
return (new MailMessage)
->subject(__('emails.package_limits.credits_low.subject'))
->greeting(__('emails.package_limits.credits_low.greeting', [
'name' => $this->tenant->name ?? __('emails.package_limits.team_fallback'),
]))
->line(__('emails.package_limits.credits_low.body', [
'balance' => $this->balance,
'threshold' => $this->threshold,
]))
->action(__('emails.package_limits.credits_low.action'), $url)
->line(__('emails.package_limits.footer'));
}
}