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
/
DropdownPaymentType.php
/
/
<?php namespace App\View\Components; use Closure; use Illuminate\Contracts\View\View; use Illuminate\View\Component; use App\Models\PaymentTypes; use App\Services\PaymentTypeService; use App\Enums\PaymentTypesUniqueCode; class DropdownPaymentType extends Component { /** * Roles array * * @var array */ public $paymentTypes; /** * Selected option * * @var string */ public $selected; public $paymentTypeName; /** * Ignote the ids * comma delimited * */ public $dontShowCheque; /** * Create a new component instance. */ public function __construct($paymentTypeName = 'payment_type_id', $dontShowCheque = false, $selected = null) { $chequeId = ''; if($dontShowCheque){ $paymentTypeService = new PaymentTypeService(); $chequeId = $paymentTypeService->returnPaymentTypeId(PaymentTypesUniqueCode::CHEQUE->value); } $this->paymentTypes = PaymentTypes::select('id', 'name') ->when($dontShowCheque, function($query) use ($chequeId) { return $query->whereNotIn('id', [$chequeId]); }) ->get(); $this->selected = $selected; $this->paymentTypeName = $paymentTypeName; } /** * Get the view / contents that represent the component. */ public function render(): View|Closure|string { return view('components.dropdown-payment-type'); } }
/home/users/unlimited/www/sigmaerp.codeskitter.site/app/View/Components/DropdownPaymentType.php