akaunting/app/View/Components/Form/Group/PaymentMethod.php
2022-06-01 10:15:55 +03:00

30 lines
681 B
PHP

<?php
namespace App\View\Components\Form\Group;
use App\Abstracts\View\Components\Form;
use App\Utilities\Modules;
class PaymentMethod extends Form
{
public $type = 'payment_method';
public $payment_methods;
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|string
*/
public function render()
{
$this->payment_methods = Modules::getPaymentMethods();
if (empty($this->selected) && empty($this->getParentData('model'))) {
$this->selected = setting('default.payment_method');
}
return view('components.form.group.payment_method');
}
}