@php $one_time_items = $user_abo->one_time_items()->with('product')->get(); $hasOneTimeChanges = \App\Services\AboOneTimeService::hasUnconfirmedChanges($user_abo); $hasConfirmedOneTimeItems = \App\Services\AboOneTimeService::hasConfirmedItems($user_abo); $oneTimeGross = $summary['one_time']['gross'] ?? 0; $nextDeliveryTotal = $summary['total_with_shipping'] ?? 0; $oneTimeConfirmationState = $hasOneTimeChanges ? 'changed' : ($hasConfirmedOneTimeItems ? 'confirmed' : 'empty'); @endphp @if(isset($error_message) && $error_message)
| # | {{ __('order.article') }} | {{ __('tables.quantity') }} | {{ __('tables.price') }} |
|---|---|---|---|
|
@if($one_time_item->product && count($one_time_item->product->images))
|
{{ $one_time_item->product?->getLang('name') }}
{{ __('abo.onetime_badge') }}
{{ __('order.content') }}: {{ $one_time_item->product?->contents }}
{{ __('order.art_no') }}: {{ $one_time_item->product?->number }}
|
|
{{ $one_time_item->getFormattedTotalPrice() }} €
|
| {{ __('abo.onetime_empty') }} | |||
| {{ __('abo.onetime_subtotal') }}: | {{ formatNumber($summary['one_time']['gross'] ?? 0) }} € | ||
| {{ __('abo.onetime_next_delivery_total') }}: | {{ formatNumber($nextDeliveryTotal) }} € | ||
{!! __('abo.onetime_legal_notice', [ 'nextBillingDate' => $user_abo->next_date ?: __('abo.confirm_next_delivery_unknown'), 'agb' => ''.__('abo.confirm_terms_link').'', 'withdrawal' => ''.__('abo.confirm_withdrawal_link').'', ]) !!}
@if($hasOneTimeChanges)