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 /
aa /
app /
Delete
Unzip
Name
Size
Permission
Date
Action
Backup
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Charts
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Console
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Events
[ DIR ]
drwxr-xr-x
2025-12-19 03:59
Exceptions
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Exports
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Http
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Listeners
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Mail
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Notifications
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Providers
[ DIR ]
drwxr-xr-x
2025-12-19 05:29
Restaurant
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Rules
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
Utils
[ DIR ]
drwxr-xr-x
2025-02-06 04:36
.htaccess
197
B
-r--r--r--
2025-12-18 07:34
Account.php
3.89
KB
-rw-r--r--
2025-02-06 04:36
AccountTransaction.php
4.4
KB
-rw-r--r--
2025-02-06 04:36
AccountType.php
486
B
-rw-r--r--
2025-02-06 04:36
Barcode.php
221
B
-rw-r--r--
2025-02-06 04:36
Brands.php
1.01
KB
-rw-r--r--
2025-02-06 04:36
Business.php
2.78
KB
-rw-r--r--
2025-02-06 04:36
BusinessLocation.php
5.42
KB
-rw-r--r--
2025-02-06 04:36
CashDenomination.php
230
B
-rw-r--r--
2025-02-06 04:36
CashRegister.php
585
B
-rw-r--r--
2025-02-06 04:36
CashRegisterTransaction.php
237
B
-rw-r--r--
2025-02-06 04:36
Category.php
2.92
KB
-rw-r--r--
2025-02-06 04:36
Contact.php
12.09
KB
-rw-r--r--
2025-02-06 04:36
Currency.php
104
B
-rw-r--r--
2025-02-06 04:36
CustomerGroup.php
1016
B
-rw-r--r--
2025-02-06 04:36
DashboardConfiguration.php
111
B
-rw-r--r--
2025-02-06 04:36
Discount.php
483
B
-rw-r--r--
2025-02-06 04:36
DocumentAndNote.php
928
B
-rw-r--r--
2025-02-06 04:36
ExpenseCategory.php
811
B
-rw-r--r--
2025-02-06 04:36
GroupSubTax.php
213
B
-rw-r--r--
2025-02-06 04:36
InvoiceLayout.php
1.06
KB
-rw-r--r--
2025-02-06 04:36
InvoiceScheme.php
836
B
-rw-r--r--
2025-02-06 04:36
Media.php
6.31
KB
-rw-r--r--
2025-02-06 04:36
NotificationTemplate.php
17.09
KB
-rw-r--r--
2025-02-06 04:36
PaymentAccount.php
693
B
-rw-r--r--
2025-02-06 04:36
Printer.php
1.65
KB
-rw-r--r--
2025-02-06 04:36
Product.php
5.34
KB
-rw-r--r--
2025-02-06 04:36
ProductRack.php
225
B
-rw-r--r--
2025-02-06 04:36
ProductVariation.php
448
B
-rw-r--r--
2025-02-06 04:36
PurchaseLine.php
1.85
KB
-rw-r--r--
2025-02-06 04:36
ReferenceCount.php
228
B
-rw-r--r--
2025-02-06 04:36
SellingPriceGroup.php
1.58
KB
-rw-r--r--
2025-02-06 04:36
StockAdjustmentLine.php
474
B
-rw-r--r--
2025-02-06 04:36
System.php
2.33
KB
-rw-r--r--
2025-02-06 04:36
TaxRate.php
2.66
KB
-rw-r--r--
2025-02-06 04:36
Transaction.php
13.31
KB
-rw-r--r--
2025-02-06 04:36
TransactionPayment.php
3.16
KB
-rw-r--r--
2025-02-06 04:36
TransactionSellLine.php
2.61
KB
-rw-r--r--
2025-02-06 04:36
TransactionSellLinesPurchaseLines.php
375
B
-rw-r--r--
2025-02-06 04:36
TypesOfService.php
758
B
-rw-r--r--
2025-02-06 04:36
Unit.php
1.28
KB
-rw-r--r--
2025-02-06 04:36
User.php
8.89
KB
-rw-r--r--
2025-02-06 04:36
UserContactAccess.php
113
B
-rw-r--r--
2025-02-06 04:36
Variation.php
1.62
KB
-rw-r--r--
2025-02-06 04:36
VariationGroupPrice.php
819
B
-rw-r--r--
2025-02-06 04:36
VariationLocationDetails.php
238
B
-rw-r--r--
2025-02-06 04:36
VariationTemplate.php
401
B
-rw-r--r--
2025-02-06 04:36
VariationValueTemplate.php
419
B
-rw-r--r--
2025-02-06 04:36
Warranty.php
1.3
KB
-rw-r--r--
2025-02-06 04:36
error_log
5.45
KB
-rw-r--r--
2025-12-19 05:56
wp-blog-header.php
2.74
KB
-r--r--r--
2025-12-18 07:34
wp-cron.php
2.74
KB
-rw-r--r--
2025-12-18 07:34
Save
Rename
<?php namespace App; use App\Events\TransactionPaymentDeleted; use App\Events\TransactionPaymentUpdated; use Illuminate\Database\Eloquent\Model; class TransactionPayment extends Model { /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; /** * Get the phone record associated with the user. */ public function payment_account() { return $this->belongsTo(\App\Account::class, 'account_id'); } /** * Get the transaction related to this payment. */ public function transaction() { return $this->belongsTo(\App\Transaction::class, 'transaction_id'); } /** * Get the user. */ public function created_user() { return $this->belongsTo(\App\User::class, 'created_by'); } /** * Get child payments */ public function child_payments() { return $this->hasMany(\App\TransactionPayment::class, 'parent_id'); } /** * Retrieves documents path if exists */ public function getDocumentPathAttribute() { $path = ! empty($this->document) ? asset('/uploads/documents/'.$this->document) : null; return $path; } /** * Removes timestamp from document name */ public function getDocumentNameAttribute() { $document_name = ! empty(explode('_', $this->document, 2)[1]) ? explode('_', $this->document, 2)[1] : $this->document; return $document_name; } public static function deletePayment($payment) { //Update parent payment if exists if (! empty($payment->parent_id)) { $parent_payment = TransactionPayment::find($payment->parent_id); $parent_payment->amount -= $payment->amount; if ($parent_payment->amount <= 0) { $parent_payment->delete(); event(new TransactionPaymentDeleted($parent_payment)); } else { $parent_payment->save(); //Add event to update parent payment account transaction event(new TransactionPaymentUpdated($parent_payment, null)); } } $payment->delete(); $transactionUtil = new \App\Utils\TransactionUtil(); if (! empty($payment->transaction_id)) { //update payment status $transaction = $payment->load('transaction')->transaction; $transaction_before = $transaction->replicate(); $payment_status = $transactionUtil->updatePaymentStatus($payment->transaction_id); $transaction->payment_status = $payment_status; $transactionUtil->activityLog($transaction, 'payment_edited', $transaction_before); } $log_properities = [ 'id' => $payment->id, 'ref_no' => $payment->payment_ref_no, ]; $transactionUtil->activityLog($payment, 'payment_deleted', null, $log_properities); //Add event to delete account transaction event(new TransactionPaymentDeleted($payment)); } public function denominations() { return $this->morphMany(\App\CashDenomination::class, 'model'); } }