1
0
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:
Benjamin Beganović 2024-02-21 18:00:06 +01:00
parent 64ef4ee9da
commit e426fad38d

View File

@ -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');