⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.37
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
vhosts
/
raqmix.net
/
testpos.raqmix.net
/
app
/
View File Name :
Business.php
'array', 'enabled_modules' => 'array', 'email_settings' => 'array', 'sms_settings' => 'array', 'common_settings' => 'array', 'weighing_scale_setting' => 'array', ]; /** * Returns the date formats */ public static function date_formats() { return [ 'd-m-Y' => 'dd-mm-yyyy', 'm-d-Y' => 'mm-dd-yyyy', 'd/m/Y' => 'dd/mm/yyyy', 'm/d/Y' => 'mm/dd/yyyy', ]; } /** * Get the owner details */ public function owner() { return $this->hasOne(\App\User::class, 'id', 'owner_id'); } /** * Get the Business currency. */ public function currency() { return $this->belongsTo(\App\Currency::class); } /** * Get the Business currency. */ public function locations() { return $this->hasMany(\App\BusinessLocation::class); } /** * Get the Business printers. */ public function printers() { return $this->hasMany(\App\Printer::class); } /** * Get the Business subscriptions. */ public function subscriptions() { return $this->hasMany('\Modules\Superadmin\Entities\Subscription'); } /** * Creates a new business based on the input provided. * * @return object */ public static function create_business($details) { $business = Business::create($details); return $business; } /** * Updates a business based on the input provided. * * @param int $business_id * @param array $details * @return object */ public static function update_business($business_id, $details) { if (! empty($details)) { Business::where('id', $business_id) ->update($details); } } public function getBusinessAddressAttribute() { $location = $this->locations->first(); $address = $location->landmark.', '.$location->city. ', '.$location->state.'
'.$location->country.', '.$location->zip_code; return $address; } }