uawdijnntqw1x1x1
IP : 216.73.216.145
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
/
View
/
Components
/
DropdownStatus.php
/
/
<?php namespace App\View\Components; use Closure; use Illuminate\Contracts\View\View; use Illuminate\View\Component; class DropdownStatus extends Component { /** * Selected option * * @var string */ public $selected; /** * Options list * * @var array */ public $dropdownData; /** * Dropdown name or id attribute * * @var String */ public $dropdownName; /** * Dropdown option naming - Active/Inactive or Enable/Disable * * @var String */ public $optionNaming; /** * Create a new component instance. */ public function __construct($dropdownName, $selected = null, $optionNaming = null) { //Declare var optionNaming before this dropdownData() mthod $this->optionNaming = $optionNaming; $this->dropdownData = $this->dropdownData(); $this->selected = $selected; $this->dropdownName = $dropdownName; } public function dropdownData(){ if($this->optionNaming == 'EnableDisable'){ return [ [ 'status' => 1, 'name' => 'Enable', ], [ 'status' => 0, 'name' => 'Disable', ], ]; } else if($this->optionNaming == 'ActiveInactive'){ return [ [ 'status' => 'active', 'name' => 'Active', ], [ 'status' => 'inactive', 'name' => 'Inactive', ], ]; } else if($this->optionNaming == 'InclusiveExclusive'){ return [ [ 'status' => 'inclusive', 'name' => 'Inclusive', ], [ 'status' => 'exclusive', 'name' => 'Exclusive', ], ]; } else{ return [ [ 'status' => 1, 'name' => 'Active', ], [ 'status' => 0, 'name' => 'Inactive', ], ]; } } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.dropdown-status'); } }
/home/users/unlimited/www/sigmaerp.codeskitter.site/app/View/Components/DropdownStatus.php