mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:04:30 -04:00
Add showOptionalProductsLabel method to Cart class
This commit is contained in:
parent
64ef4ee9da
commit
e426fad38d
@ -27,6 +27,16 @@ class Cart extends Component
|
|||||||
$this->dispatch('purchase.next');
|
$this->dispatch('purchase.next');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function showOptionalProductsLabel()
|
||||||
|
{
|
||||||
|
$optional = [
|
||||||
|
...$this->context['bundle']['optional_recurring_products'] ?? [],
|
||||||
|
...$this->context['bundle']['optional_one_time_products'] ?? [],
|
||||||
|
];
|
||||||
|
|
||||||
|
return count($optional) > 0;
|
||||||
|
}
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
{
|
{
|
||||||
return view('billing-portal.v3.cart.cart');
|
return view('billing-portal.v3.cart.cart');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user