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 /
Modules /
Entities /
Delete
Unzip
Name
Size
Permission
Date
Action
.gitkeep
0
B
-rw-rw-rw-
2025-12-19 06:08
AccountingAccTransMapping.php
178
B
-rw-rw-rw-
2025-12-19 06:08
AccountingAccount.php
2.4
KB
-rw-rw-rw-
2025-12-19 06:08
AccountingAccountType.php
1.47
KB
-rw-rw-rw-
2025-12-19 06:08
AccountingAccountsTransaction.php
1.97
KB
-rw-rw-rw-
2025-12-19 06:08
AccountingBudget.php
265
B
-rw-rw-rw-
2025-12-19 06:08
error_log
5.56
KB
-rw-r--r--
2025-12-20 13:10
Save
Rename
<?php namespace Modules\Accounting\Entities; use Illuminate\Database\Eloquent\Model; use Modules\Accounting\Entities\AccountingAccountType; class AccountingAccount extends Model { /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = ['id']; public function child_accounts() { return $this->hasMany(\Modules\Accounting\Entities\AccountingAccount::class, 'parent_account_id'); } // public function account_type() // { // return $this->belongsTo(\Modules\Accounting\Entities\AccountingAccountType::class, 'account_type_id'); // } public function account_sub_type() { return $this->belongsTo(\Modules\Accounting\Entities\AccountingAccountType::class, 'account_sub_type_id'); } public function detail_type() { return $this->belongsTo(\Modules\Accounting\Entities\AccountingAccountType::class, 'detail_type_id'); } /** * Accounts Dropdown * * @param int $business_id * @return array */ public static function forDropdown($business_id, $with_data=false, $q=''){ $query = AccountingAccount::where('accounting_accounts.business_id', $business_id) ->where('status', 'active'); if($with_data) { $account_types = AccountingAccountType::accounting_primary_type(); if(!empty($q)) { $query->where('accounting_accounts.name', 'like', "%{$q}%"); } $accounts = $query->leftJoin('accounting_account_types as at', 'at.id', '=', 'accounting_accounts.account_sub_type_id') ->select('accounting_accounts.name', 'accounting_accounts.id', 'at.name as sub_type', 'accounting_accounts.account_primary_type', 'at.business_id as sub_type_business_id') ->get(); foreach($accounts as $k => $v) { $accounts[$k]->account_primary_type = !empty($account_types[$v->account_primary_type]) ? $account_types[$v->account_primary_type]['label'] : $v->account_primary_type; $accounts[$k]->sub_type = !empty($v->sub_type_business_id) ? $v->sub_type : __('accounting::lang.'. $v->sub_type); } return $accounts; } else { return $query->pluck('name', 'id'); } } }