
{!! Form::open(['url' => route('user_membership_store', ['upgrade_order']), 'class' => 'form-horizontal']) !!}
<input type="hidden" name="qty" value="{{$diff_months}}">
<div class="table-responsive">
    <table class="table table- m-0">
        <tbody class="switchers-stacked">
        @foreach($upgrade as $product)
            <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" checked="checked">
                        <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 / Monat</td>
            </tr>
            <tr>
                <td colspan="2" class="text-right">Restlaufzeit: {{$diff_months}}  @if($diff_months==1) Monat @else Monate @endif</td>
                <td class="text-right font-weight-semibold"> {!! Util::formatNumber($diff_months * $product->price) !!} EUR</td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>
<div class="text-left mt-3">
   @include('user.membership._abo_options')
    <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() !!}