


<!-- Description -->
<div class="card mb-4">
    <div class="card-body">
        <h5>Dein gebuchtes Paket</h5>
        {!! Form::open(['url' => route('user_membership_store', ['payment_order']), 'class' => 'form-horizontal']) !!}
        <div class="table-responsive">
            <table class="table table- m-0">
                <tbody class="switchers-stacked">
                @foreach($products as $product)
                    @if($product->id === $user->payment_order_id || $product->identifier === 'show_order')
                    <tr>
                        <td class="text-center align-middle px-0">
                            <label class="switcher  switcher-secondary">
                                <input type="radio" class="switcher-input" value="{{$product->id}}" name="switchers-package-wizard" @if($product->id == $user->payment_order_id) checked @endif >
                                <span class="switcher-indicator">
                                              <span class="switcher-yes"></span>
                                              <span class="switcher-no"></span>
                                            </span>
                                <span class="switcher-label"></span>
                            </label>
                        </td>
                        <td class="p-4">
                            <div class="media align-items-center">
                                @if(count($product->images))
                                    <img src="{{ route('product_image', [$product->images->first()->slug]) }}" class="d-block ui-w-60 ui-bordered mr-4" alt="">
                                @endif
                                <div class="media-body">
                                    <h5 class="d-block text-dark">{{$product->name}}</h5>
                                    {!!  $product->getLang('copy') !!}
                                </div>
                            </div>
                        </td>
                        <td class="text-right font-weight-semibold align-middle p-4">{{$product->getFormattedPrice()}} EUR / p.a.</td>
                    </tr>
                    @endif
                @endforeach
                </tbody>
            </table>
        </div>
        <div class="text-left mt-3">
            @if(!$user->isAboOption())
            <hr>
            <label class="custom-control custom-checkbox">
                <input type="checkbox" class="custom-control-input" name="abo_options">
                <span class="custom-control-label secondary"><strong>{{__('payment.status.auto_renewal_hl')}}:</strong> {{__('payment.status.auto_renewal_line_1')}}</span>
                <p class="text-muted">{{__('payment.status.auto_renewal_line_2')}}</p>
            </label>
            <hr>
            @else
                <p><strong>Alternativ hast Du die Möglichkeit jetzt direkt Deine Mitgliedschaft mit anderen Zahlungsmöglichkeite zu bezahlen.</strong><br>
                    Ist die Mitgliedschaft vor dem {!! Carbon::parse($user->payment_account)->modify('-'.config('main.abo_booking_days').' days')->format('d.m.Y') !!} bezahlt, wird das SEPA Mandart nicht ausgeführt!</p>
                <hr>
            @endif
                <button type="submit" class="btn btn-secondary">{{ __('wählen und weiter zur Kasse') }}</button>&nbsp;
            <br><br>
            <em class="small text-center"> <i class="fa fa-lock"></i> Du wirst auf unseren checkout weitergeletet, die Verbindung ist SSL verschlüsselt.</em>
        </div>
        {!! Form::close() !!}

    </div>
</div>
<!-- / Description -->