mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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');
|
||||
}
|
||||
|
||||
public function showOptionalProductsLabel()
|
||||
{
|
||||
$optional = [
|
||||
...$this->context['bundle']['optional_recurring_products'] ?? [],
|
||||
...$this->context['bundle']['optional_one_time_products'] ?? [],
|
||||
];
|
||||
|
||||
return count($optional) > 0;
|
||||
}
|
||||
|
||||
public function render()
|
||||
{
|
||||
return view('billing-portal.v3.cart.cart');
|
||||
|
Loading…
Reference in New Issue
Block a user