@extends('layouts.layout-2') @section('content')

{{ __('back') }}
@if ($view === 'ot') {{ __('navigation.customerabo') }} @endif @if ($view === 'me') {{ __('navigation.myabo') }} @endif {{ '#' . $user_abo->payone_userid }}

@if (Session::has('alert-success'))
@endif @if (Session::has('alert-error'))
@endif @if (Session::has('alert-warning'))
@endif @if ($view === 'me' && $user_abo->status === 3 && $user_abo->active)
{{ __('abo.pay_now_title') }}

{{ __('abo.pay_now_copy') }}

@csrf
@endif
@include('admin.abo._detail')
@include('admin.abo._detail_abo_info')
@include('admin.customer._customer_detail', ['shopping_user' => $customer_detail])
@php // Selbstbedienung: Add-only (Mindestlaufzeit) und Change-Lock richten sich nach der // Abo-Sicht ($view), NICHT nach Admin-Status. So gelten für VIP/Admin auf der eigenen // Abo-Seite dieselben Regeln wie für jeden Berater (kein Admin-Bypass). $addOnlyMode = App\Services\AboHelper::isAddOnlyMode($user_abo, $view); $aboChangeLocked = App\Services\AboHelper::isAboChangeLocked($user_abo, $view); @endphp {!! Form::open([ 'action' => route('user_abos_update', [$view, $user_abo->id]), 'class' => 'form-horizontal', 'id' => 'cart-order-form', 'data-add-only-mode' => $addOnlyMode ? '1' : '0', ]) !!} @php $oneTimeWindowOpen = isset($one_time_window_open) ? $one_time_window_open : false; $summary = isset($summary) ? $summary : null; $cartInstance = \App\Services\AboOrderCart::INSTANCE; @endphp @if ($oneTimeWindowOpen)
@include('admin.abo._order_onetime', ['summary' => $summary])
@include('admin.abo._order_abo', [ 'add_only_mode' => $addOnlyMode, 'split_mode' => true, 'summary' => $summary, 'change_locked' => $aboChangeLocked, ])
@if ($comp_products && Yard::instance($cartInstance)->getNumComp() > 0) @include('user.order.comp_product', [ 'cart_instance' => $cartInstance, 'base_comp_count' => $base_comp_count ?? Yard::instance($cartInstance)->getNumComp(), ]) @endif
@include('admin.abo._order_combined_summary', ['summary' => $summary])
@else
@include('admin.abo._order_abo', [ 'add_only_mode' => $addOnlyMode, 'change_locked' => $aboChangeLocked, ])
@if ($comp_products && Yard::instance($cartInstance)->getNumComp() > 0) @include('user.order.comp_product', [ 'cart_instance' => $cartInstance, 'base_comp_count' => $base_comp_count ?? Yard::instance($cartInstance)->getNumComp(), ]) @endif
@endif {{ Form::close() }}
@include('admin.abo._executions')
@include('admin.abo._pause_cancel') @php($canStartPaymentChange = app(\App\Services\AboPaymentMethodService::class)->canStartChange($user_abo)) @if ($user_abo->isCreditCard() || $canStartPaymentChange)
{{ __('abo.payment_method') }}

{{ $user_abo->getPaymentType() }}@if ($user_abo->maskedCard()) : {{ $user_abo->maskedCard() }} @endif

@if ($view === 'me' && $canStartPaymentChange) {{ __('abo.update_payment_method') }} @endif @if ($view === 'ot' && $canStartPaymentChange)
@csrf
@endif @if ($user_abo->card_changes->isNotEmpty())
{{ __('abo.card_change_history') }}
    @foreach ($user_abo->card_changes->take(5) as $change)
  • {{ $change->created_at->format('d.m.Y H:i') }}@if ($change->masked_card) — {{ $change->masked_card }} @endif
  • @endforeach
@endif
@endif {{ __('back') }} @include('admin.abo._confirm_add_modal') @endsection @section('scripts') @endsection