Implement package limit notification system
This commit is contained in:
15
app/Events/Packages/EventPackageGalleryExpired.php
Normal file
15
app/Events/Packages/EventPackageGalleryExpired.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\EventPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class EventPackageGalleryExpired
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(public EventPackage $eventPackage) {}
|
||||
}
|
||||
18
app/Events/Packages/EventPackageGalleryExpiring.php
Normal file
18
app/Events/Packages/EventPackageGalleryExpiring.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\EventPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class EventPackageGalleryExpiring
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public EventPackage $eventPackage,
|
||||
public int $daysRemaining,
|
||||
) {}
|
||||
}
|
||||
18
app/Events/Packages/EventPackageGuestLimitReached.php
Normal file
18
app/Events/Packages/EventPackageGuestLimitReached.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\EventPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class EventPackageGuestLimitReached
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public EventPackage $eventPackage,
|
||||
public int $limit,
|
||||
) {}
|
||||
}
|
||||
20
app/Events/Packages/EventPackageGuestThresholdReached.php
Normal file
20
app/Events/Packages/EventPackageGuestThresholdReached.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\EventPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class EventPackageGuestThresholdReached
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public EventPackage $eventPackage,
|
||||
public float $threshold,
|
||||
public int $limit,
|
||||
public int $used,
|
||||
) {}
|
||||
}
|
||||
18
app/Events/Packages/EventPackagePhotoLimitReached.php
Normal file
18
app/Events/Packages/EventPackagePhotoLimitReached.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\EventPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class EventPackagePhotoLimitReached
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public EventPackage $eventPackage,
|
||||
public int $limit,
|
||||
) {}
|
||||
}
|
||||
20
app/Events/Packages/EventPackagePhotoThresholdReached.php
Normal file
20
app/Events/Packages/EventPackagePhotoThresholdReached.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\EventPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class EventPackagePhotoThresholdReached
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public EventPackage $eventPackage,
|
||||
public float $threshold,
|
||||
public int $limit,
|
||||
public int $used,
|
||||
) {}
|
||||
}
|
||||
19
app/Events/Packages/TenantCreditsLow.php
Normal file
19
app/Events/Packages/TenantCreditsLow.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\Tenant;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class TenantCreditsLow
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public Tenant $tenant,
|
||||
public int $balance,
|
||||
public int $threshold,
|
||||
) {}
|
||||
}
|
||||
18
app/Events/Packages/TenantPackageEventLimitReached.php
Normal file
18
app/Events/Packages/TenantPackageEventLimitReached.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\TenantPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class TenantPackageEventLimitReached
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public TenantPackage $tenantPackage,
|
||||
public int $limit,
|
||||
) {}
|
||||
}
|
||||
20
app/Events/Packages/TenantPackageEventThresholdReached.php
Normal file
20
app/Events/Packages/TenantPackageEventThresholdReached.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\TenantPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class TenantPackageEventThresholdReached
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(
|
||||
public TenantPackage $tenantPackage,
|
||||
public float $threshold,
|
||||
public int $limit,
|
||||
public int $used,
|
||||
) {}
|
||||
}
|
||||
15
app/Events/Packages/TenantPackageExpired.php
Normal file
15
app/Events/Packages/TenantPackageExpired.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\TenantPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class TenantPackageExpired
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(public TenantPackage $tenantPackage) {}
|
||||
}
|
||||
15
app/Events/Packages/TenantPackageExpiring.php
Normal file
15
app/Events/Packages/TenantPackageExpiring.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Events\Packages;
|
||||
|
||||
use App\Models\TenantPackage;
|
||||
use Illuminate\Foundation\Events\Dispatchable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class TenantPackageExpiring
|
||||
{
|
||||
use Dispatchable;
|
||||
use SerializesModels;
|
||||
|
||||
public function __construct(public TenantPackage $tenantPackage, public int $daysRemaining) {}
|
||||
}
|
||||
Reference in New Issue
Block a user