Linux amd.servercpanel.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
LiteSpeed
Server IP : 161.248.188.165 & Your IP : 216.73.216.219
Domains :
Cant Read [ /etc/named.conf ]
User : oishifashion
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
oishifashion /
ap.tsgbd.com /
app /
Delete
Unzip
Name
Size
Permission
Date
Action
Backup
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Charts
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Console
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Events
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Exceptions
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Exports
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Http
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Listeners
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Mail
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Notifications
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Providers
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Restaurant
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Rules
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Utils
[ DIR ]
drwxr-xr-x
2025-12-16 01:59
Account.php
3.89
KB
-rw-r--r--
2025-12-16 01:59
AccountTransaction.php
4.44
KB
-rw-r--r--
2025-12-16 01:59
AccountType.php
486
B
-rw-r--r--
2025-12-16 01:59
Barcode.php
221
B
-rw-r--r--
2025-12-16 01:59
Brands.php
1.01
KB
-rw-r--r--
2025-12-16 01:59
Business.php
2.78
KB
-rw-r--r--
2025-12-16 01:59
BusinessLocation.php
5.42
KB
-rw-r--r--
2025-12-16 01:59
CashDenomination.php
230
B
-rw-r--r--
2025-12-16 01:59
CashRegister.php
585
B
-rw-r--r--
2025-12-16 01:59
CashRegisterTransaction.php
237
B
-rw-r--r--
2025-12-16 01:59
Category.php
2.92
KB
-rw-r--r--
2025-12-16 01:59
Contact.php
12.51
KB
-rw-r--r--
2025-12-16 01:59
Currency.php
104
B
-rw-r--r--
2025-12-16 01:59
CustomerGroup.php
1016
B
-rw-r--r--
2025-12-16 01:59
DashboardConfiguration.php
111
B
-rw-r--r--
2025-12-16 01:59
Discount.php
483
B
-rw-r--r--
2025-12-16 01:59
DocumentAndNote.php
928
B
-rw-r--r--
2025-12-16 01:59
ExpenseCategory.php
811
B
-rw-r--r--
2025-12-16 01:59
GroupSubTax.php
213
B
-rw-r--r--
2025-12-16 01:59
InvoiceLayout.php
1.06
KB
-rw-r--r--
2025-12-16 01:59
InvoiceScheme.php
836
B
-rw-r--r--
2025-12-16 01:59
Media.php
6.31
KB
-rw-r--r--
2025-12-16 01:59
NotificationTemplate.php
17.09
KB
-rw-r--r--
2025-12-16 01:59
PaymentAccount.php
693
B
-rw-r--r--
2025-12-16 01:59
Printer.php
1.65
KB
-rw-r--r--
2025-12-16 01:59
Product.php
5.34
KB
-rw-r--r--
2025-12-16 01:59
ProductRack.php
225
B
-rw-r--r--
2025-12-16 01:59
ProductVariation.php
448
B
-rw-r--r--
2025-12-16 01:59
PurchaseLine.php
1.85
KB
-rw-r--r--
2025-12-16 01:59
ReferenceCount.php
228
B
-rw-r--r--
2025-12-16 01:59
SellingPriceGroup.php
1.58
KB
-rw-r--r--
2025-12-16 01:59
StockAdjustmentLine.php
474
B
-rw-r--r--
2025-12-16 01:59
System.php
2.33
KB
-rw-r--r--
2025-12-16 01:59
TaxRate.php
2.66
KB
-rw-r--r--
2025-12-16 01:59
Transaction.php
13.43
KB
-rw-r--r--
2025-12-16 01:59
TransactionPayment.php
3.16
KB
-rw-r--r--
2025-12-16 01:59
TransactionSellLine.php
2.61
KB
-rw-r--r--
2025-12-16 01:59
TransactionSellLinesPurchaseLines.php
375
B
-rw-r--r--
2025-12-16 01:59
TypesOfService.php
758
B
-rw-r--r--
2025-12-16 01:59
Unit.php
1.28
KB
-rw-r--r--
2025-12-16 01:59
User.php
8.89
KB
-rw-r--r--
2025-12-16 01:59
UserContactAccess.php
113
B
-rw-r--r--
2025-12-16 01:59
Variation.php
1.62
KB
-rw-r--r--
2025-12-16 01:59
VariationGroupPrice.php
819
B
-rw-r--r--
2025-12-16 01:59
VariationLocationDetails.php
238
B
-rw-r--r--
2025-12-16 01:59
VariationTemplate.php
401
B
-rw-r--r--
2025-12-16 01:59
VariationValueTemplate.php
419
B
-rw-r--r--
2025-12-16 01:59
Warranty.php
1.3
KB
-rw-r--r--
2025-12-16 01:59
Save
Rename
<?php namespace App; use Illuminate\Database\Eloquent\Model; class NotificationTemplate extends Model { /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; /** * Retrives notification template from database * * @param int $business_id * @param string $template_for * @return array $template */ public static function getTemplate($business_id, $template_for) { $notif_template = NotificationTemplate::where('business_id', $business_id) ->where('template_for', $template_for) ->first(); $template = [ 'subject' => ! empty($notif_template->subject) ? $notif_template->subject : '', 'sms_body' => ! empty($notif_template->sms_body) ? $notif_template->sms_body : '', 'whatsapp_text' => ! empty($notif_template->whatsapp_text) ? $notif_template->whatsapp_text : '', 'email_body' => ! empty($notif_template->email_body) ? $notif_template->email_body : '', 'template_for' => $template_for, 'cc' => ! empty($notif_template->cc) ? $notif_template->cc : '', 'bcc' => ! empty($notif_template->bcc) ? $notif_template->bcc : '', 'auto_send' => ! empty($notif_template->auto_send) ? 1 : 0, 'auto_send_sms' => ! empty($notif_template->auto_send_sms) ? 1 : 0, 'auto_send_wa_notif' => ! empty($notif_template->auto_send_wa_notif) ? 1 : 0, ]; return $template; } public static function customerNotifications() { return [ 'new_sale' => [ 'name' => __('lang_v1.new_sale'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{invoice_number}', '{invoice_url}', '{total_amount}', '{paid_amount}', '{due_amount}', '{cumulative_due_amount}', '{due_date}'], ['{location_name}', '{location_address}', '{location_email}', '{location_phone}', '{location_custom_field_1}', '{location_custom_field_2}', '{location_custom_field_3}', '{location_custom_field_4}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ['{sell_custom_field_1}', '{sell_custom_field_2}', '{sell_custom_field_3}', '{sell_custom_field_4}'], ['{shipping_custom_field_1}', '{shipping_custom_field_2}', '{shipping_custom_field_3}', '{shipping_custom_field_4}', '{shipping_custom_field_5}'], ], ], 'payment_received' => [ 'name' => __('lang_v1.payment_received'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{invoice_number}', '{payment_ref_number}', '{received_amount}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], 'payment_reminder' => [ 'name' => __('lang_v1.payment_reminder'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{invoice_number}', '{due_amount}', '{cumulative_due_amount}', '{due_date}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], 'new_booking' => [ 'name' => __('lang_v1.new_booking'), 'extra_tags' => self::bookingNotificationTags(), ], 'new_quotation' => [ 'name' => __('lang_v1.new_quotation'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{invoice_number}', '{total_amount}', '{quote_url}'], ['{location_name}', '{location_address}', '{location_email}', '{location_phone}', '{location_custom_field_1}', '{location_custom_field_2}', '{location_custom_field_3}', '{location_custom_field_4}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], ]; } public static function generalNotifications() { return [ 'send_ledger' => [ 'name' => __('lang_v1.send_ledger'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{balance_due}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], ]; } public static function supplierNotifications() { return [ 'new_order' => [ 'name' => __('lang_v1.new_order'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{order_ref_number}', '{total_amount}', '{received_amount}', '{due_amount}'], ['{location_name}', '{location_address}', '{location_email}', '{location_phone}', '{location_custom_field_1}', '{location_custom_field_2}', '{location_custom_field_3}', '{location_custom_field_4}'], ['{purchase_custom_field_1}', '{purchase_custom_field_2}', '{purchase_custom_field_3}', '{purchase_custom_field_4}', '{contact_business_name}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ['{shipping_custom_field_1}', '{shipping_custom_field_2}', '{shipping_custom_field_3}', '{shipping_custom_field_4}', '{shipping_custom_field_5}'], ], ], 'payment_paid' => [ 'name' => __('lang_v1.payment_paid'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{order_ref_number}', '{payment_ref_number}', '{paid_amount}'], ['{contact_name}', '{contact_business_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], 'items_received' => [ 'name' => __('lang_v1.items_received'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{order_ref_number}'], ['{contact_business_name}', '{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], 'items_pending' => [ 'name' => __('lang_v1.items_pending'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{order_ref_number}'], ['{contact_business_name}', '{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], 'purchase_order' => [ 'name' => __('lang_v1.purchase_order'), 'extra_tags' => [ ['{business_name}', '{business_logo}'], ['{order_ref_number}'], ['{contact_business_name}', '{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ], ], ]; } public static function notificationTags() { return ['{contact_name}', '{invoice_number}', '{total_amount}', '{paid_amount}', '{due_amount}', '{business_name}', '{business_logo}', '{cumulative_due_amount}', '{due_date}', '{contact_business_name}', ]; } public static function bookingNotificationTags() { return [ ['{business_name}', '{business_logo}'], ['{table}', '{start_time}', '{end_time}', '{service_staff}', '{correspondent}'], ['{location}', '{location_name}', '{location_address}', '{location_email}', '{location_phone}', '{location_custom_field_1}', '{location_custom_field_2}', '{location_custom_field_3}', '{location_custom_field_4}'], ['{contact_name}', '{contact_custom_field_1}', '{contact_custom_field_2}', '{contact_custom_field_3}', '{contact_custom_field_4}', '{contact_custom_field_5}', '{contact_custom_field_6}', '{contact_custom_field_7}', '{contact_custom_field_8}', '{contact_custom_field_9}', '{contact_custom_field_10}'], ]; } public static function defaultNotificationTemplates($business_id = null) { $notification_template_data = [ [ 'business_id' => $business_id, 'template_for' => 'new_sale', 'email_body' => '<p>Dear {contact_name},</p> <p>Your invoice number is {invoice_number}<br /> Total amount: {total_amount}<br /> Paid amount: {received_amount}</p> <p>Thank you for shopping with us.</p> <p>{business_logo}</p> <p> </p>', 'sms_body' => 'Dear {contact_name}, Thank you for shopping with us. {business_name}', 'subject' => 'Thank you from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'payment_received', 'email_body' => '<p>Dear {contact_name},</p> <p>We have received a payment of {received_amount}</p> <p>{business_logo}</p>', 'sms_body' => 'Dear {contact_name}, We have received a payment of {received_amount}. {business_name}', 'subject' => 'Payment Received, from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'payment_reminder', 'email_body' => '<p>Dear {contact_name},</p> <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p> <p>{business_logo}</p>', 'sms_body' => 'Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}', 'subject' => 'Payment Reminder, from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'new_booking', 'email_body' => '<p>Dear {contact_name},</p> <p>Your booking is confirmed</p> <p>Date: {start_time} to {end_time}</p> <p>Table: {table}</p> <p>Location: {location}</p> <p>{business_logo}</p>', 'sms_body' => 'Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}', 'subject' => 'Booking Confirmed - {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'new_order', 'email_body' => '<p>Dear {contact_name},</p> <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p> <p>{business_name}<br /> {business_logo}</p>', 'sms_body' => 'Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}', 'subject' => 'New Order, from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'payment_paid', 'email_body' => '<p>Dear {contact_name},</p> <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br /> Kindly note it down.</p> <p>{business_name}<br /> {business_logo}</p>', 'sms_body' => 'We have paid amount {paid_amount} again invoice number {order_ref_number}. Kindly note it down. {business_name}', 'subject' => 'Payment Paid, from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'items_received', 'email_body' => '<p>Dear {contact_name},</p> <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p> <p>{business_name}<br /> {business_logo}</p>', 'sms_body' => 'We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}', 'subject' => 'Items received, from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'items_pending', 'email_body' => '<p>Dear {contact_name},<br /> This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p> <p>{business_name}<br /> {business_logo}</p>', 'sms_body' => 'This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}', 'subject' => 'Items Pending, from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'new_quotation', 'email_body' => '<p>Dear {contact_name},</p> <p>Your quotation number is {invoice_number}<br /> Total amount: {total_amount}</p> <p>Thank you for shopping with us.</p> <p>{business_logo}</p> <p> </p>', 'sms_body' => 'Dear {contact_name}, Thank you for shopping with us. {business_name}', 'subject' => 'Thank you from {business_name}', 'auto_send' => '0', ], [ 'business_id' => $business_id, 'template_for' => 'purchase_order', 'email_body' => '<p>Dear {contact_name},</p> <p>We have a new purchase order with reference number {order_ref_number}. The respective invoice is attached here with.</p> <p>{business_logo}</p>', 'sms_body' => 'We have a new purchase order with reference number {order_ref_number}. {business_name}', 'subject' => 'New Purchase Order, from {business_name}', 'auto_send' => '0', ], ]; return $notification_template_data; } }