chore: remove APAW from tracking; gitignore agent-generated files

This commit is contained in:
Deploy Bot
2026-06-20 01:32:54 +01:00
parent d6dedfb513
commit 6aa41381ac
362 changed files with 48506 additions and 13261 deletions

View File

@@ -0,0 +1,68 @@
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class NotificationToUserForAccountUpgrade extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*
* @return void
*/
public $user;
public $package;
public function __construct($user, $subscription_info)
{
$this->user = $user;
$this->subscription_info = $subscription_info;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage)
->greeting('Hello!')
->subject('Your account has been upgraded')
->line('Your account has been upgraded with the following packages')
->line('Package: '.$this->subscription_info->package_details['name'])
->line('Valid Till: '.\Carbon\Carbon::parse($this->subscription_info['end_date'])->isoFormat('D/MM/YYYY'))
->line('Description: '.$this->subscription_info->package_details['description']);
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}

View File

@@ -0,0 +1,68 @@
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class SendApprovalNotificationToAdminForOfflinePayment extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*
* @return void
*/
public $user;
public $package;
public function __construct($user, $package)
{
$this->user = $user;
$this->package = $package;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
$details = 'Package: '.$this->package->name.', Package Price: '.$this->package->package_price.', Paid Via: '.$this->package->paid_via;
return (new MailMessage)
->greeting('Hello!')
->subject('New Subscription')
->line('New package has been subscribed by '.$this->user->name)
->line($details);
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}

View File

@@ -0,0 +1,65 @@
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class UserNotification extends Notification
{
use Queueable;
/**
* Create a new notification instance.
*
* @return void
*/
public $user_info;
public function __construct($params)
{
$this->user_info = $params;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage)
->greeting('Hello! '.$this->user_info['name'])
->subject('Regarding your profile info')
->line('Your Email & Password are as follows:')
->line('Email: '.$this->user_info['email'])
->line('Password: '.$this->user_info['password'])
->action('Login', route('login'));
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}