| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace App\Notifications\Push\Cliente\Motivacional;
- use App\Enums\PushNotificationCategoryEnum;
- use App\Enums\PushNotificationTargetEnum;
- use App\Models\User;
- use App\Notifications\Push\BasePushNotification;
- use Illuminate\Database\Eloquent\Collection;
- class Motivacional3Push extends BasePushNotification
- {
- public function label(): string
- {
- return 'cliente_motivacional_3';
- }
- public function title(): string
- {
- return 'Menos bagunça, mais bem-estar';
- }
- public function body(): string
- {
- return 'Agende sua diária quando quiser.';
- }
- public function target(): PushNotificationTargetEnum
- {
- return PushNotificationTargetEnum::CLIENTE;
- }
- public function category(): PushNotificationCategoryEnum
- {
- return PushNotificationCategoryEnum::MOTIVACIONAL;
- }
- public function eligibleUsers(): Collection
- {
- return User::whereHas('client')
- ->where('registration_complete', true)
- ->get();
- }
- }
|