uawdijnntqw1x1x1
IP : 216.73.216.93
Hostname : panel.codeskitter.com
Kernel : Linux panel.codeskitter.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
Disable Function : apache_child_terminate, apache_note, apache_setenv, define_syslog_variables, dl, link, opcache_get_status, openlog, pcntl_exec, pcntl_fork, pcntl_setpriority, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
OS : Linux
PATH:
/
home
/
users
/
unlimited
/
www
/
sigmaerp.codeskitter.site
/
app
/
Services
/
GeneralDataService.php
/
/
<?php namespace App\Services; class GeneralDataService{ private $data; public function __construct() { // } function getStaffStatus() : array{ return [ [ 'id' => 'Pending', 'name' => 'Pending', ], [ 'id' => 'Accepted', 'name' => 'Accepted', ], [ 'id' => 'Rejected', 'name' => 'Rejected', ], [ 'id' => 'Processing', 'name' => 'Processing', ], [ 'id' => 'Completed', 'name' => 'Completed', ], ]; } function getSaleOrderStatus() : array{ return [ [ 'id' => 'Pending', 'name' => 'Pending', 'color' => 'warning', ], [ 'id' => 'Processing', 'name' => 'Processing', 'color' => 'primary', ], [ 'id' => 'Completed', 'name' => 'Completed', 'color' => 'success', ], [ 'id' => 'Cancelled', 'name' => 'Cancelled', 'color' => 'danger', ], [ 'id' => 'No Status', 'name' => 'No Status', 'color' => 'secondary', ], ]; } function getPurchaseOrderStatus() : array{ //Using Same Status as Sale Order return $this->getSaleOrderStatus(); } function getQuotationStatus() : array{ return [ [ 'id' => 'Pending', 'name' => 'Pending', 'color' => 'warning', ], [ 'id' => 'Processing', 'name' => 'Processing', 'color' => 'primary', ], [ 'id' => 'Completed', 'name' => 'Completed', 'color' => 'success', ], [ 'id' => 'Cancelled', 'name' => 'Cancelled', 'color' => 'danger', ], [ 'id' => 'On Hold', 'name' => 'On Hold', 'color' => 'secondary', ], ]; } /** * Helper for replacement of keywords * */ function replaceTemplateKeywords($template, array $replacements) { $cleanedTemplate = $template; foreach ($replacements as $keyword => $value) { //$cleanedTemplate = str_replace(':'.$keyword, $value, $cleanedTemplate); $cleanedTemplate = str_replace($keyword, $value, $cleanedTemplate); } return $cleanedTemplate; } /** * Record Batch Tracking Row Count * */ public function getBatchTranckingRowCount(){ $companySettings = app('company'); $trackableFields = [ 'enable_batch_tracking', 'enable_mfg_date', 'enable_exp_date', 'enable_model', //'show_mrp', 'enable_color', 'enable_size' ]; $batchTrackingRowCount = array_sum(array_map(function ($field) use ($companySettings) { return (isset($companySettings[$field]) && $companySettings[$field] ==1) ? 1 : 0; }, $trackableFields)); return $batchTrackingRowCount; } }
/home/users/unlimited/www/sigmaerp.codeskitter.site/app/Services/GeneralDataService.php