Refactor for livewire

This commit is contained in:
David Bomba 2022-12-23 11:56:07 +11:00
parent 843229d9b5
commit a88ef592de

View File

@ -23,13 +23,11 @@ class PayNowDropdown extends Component
public $company; public $company;
public function mount(int $total) public function mount()
{ {
MultiDB::setDb($this->company->db); MultiDB::setDb($this->company->db);
$this->total = $total; $this->methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods($this->total);
$this->methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods($total);
} }
public function render() public function render()