@foreach ($products as $product) @php /* fix for orders which has matching event, but order items use booking type products. Since those products are not loaded in the event form, we are taking them from the OrdersItem node and replacing the default product attached to the event */ if (isset($data->Order->OrdersItem->{$product->parent_id})) { $product = $data->Order->OrdersItem->{$product->parent_id}->Product; } @endphp @include( 'Plugins/Payment/Views/Elements/Order/product_row', [ 'category' => $categories->{$cat->id}, 'product' => $product ] ) @endforeach
@t('Product') @if ( isset($categories->{$cat->id}->extra->deposit) && $categories->{$cat->id}->extra->deposit == 1 ) @t('Total Price') @endif @if ($categories->{$cat->id}->extra->priced == 1) @if ( isset($categories->{$cat->id}->extra->deposit) && $categories->{$cat->id}->extra->deposit == 1 ) @t('To pay now') @else @t('Price') @endif @endif @t('Qty')