62 lines
No EOL
4.6 KiB
PHP
Executable file
62 lines
No EOL
4.6 KiB
PHP
Executable file
@if($user->active == 1)
|
|
@if($user->payment_account && $user->daysActiveAccount() <= config('mivita.remind_first_days'))
|
|
<div class="d-flex col-xl-12 align-items-stretch">
|
|
<!-- SHOP -->
|
|
<div class="card w-100 mb-4">
|
|
<h5 class="card-header">
|
|
{{__('membership.home_hl') }}
|
|
</h5>
|
|
<div class="card-body">
|
|
@if($user->daysActiveAccount() <= 0)
|
|
@if($user->isActiveAccount())
|
|
<h5 class="alert badge-danger">{{__('membership.home_copy_alert_35')}}</h5>
|
|
<p>{{__('membership.home_copy_last_35', ['days'=>$user->daysActiveAccount(), 'datetime'=>$user->getPaymentAccountDateFormat()])}}</p>
|
|
@else
|
|
{{-- 35, 36 --}}
|
|
@if($user->daysActiveAccount() == 0)
|
|
<h5 class="alert badge-danger">{{__('membership.home_copy_alert_36_today', ['datetime'=>$user->getPaymentAccountDateFormat()])}}</h5>
|
|
@else
|
|
<h5 class="alert badge-danger">{{__('membership.home_copy_alert_36', ['days'=>$user->daysActiveAccount()*-1, 'datetime'=>$user->getPaymentAccountDateFormat()])}}</h5>
|
|
@endif
|
|
@if($user->payment_account && $user->isAboOption())
|
|
{{ __('membership.home_copy_SEPA_36', ['price'=> 'von '.$user->payment_order_product->getFormattedPrice().' EUR', 'pay_date'=>Carbon::parse($user->payment_account)->modify('- '.config('mivita.abo_booking_days').' days')->format('d.m.Y')]) }}
|
|
<hr>
|
|
@endif
|
|
|
|
<p>{{__('membership.home_copy_last_36', ['days'=>$user->daysActiveAccount(), 'datetime'=>$user->getPaymentAccountDateFormat()])}}</p>
|
|
@endif
|
|
@elseif($user->daysActiveAccount() < config('mivita.remind_last_days') )
|
|
{{-- 33 --}}
|
|
<h5 class="alert badge-warning">{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}</h5>
|
|
<p>{{__('membership.home_copy_last_34', ['days'=>$user->daysActiveAccount(), 'datetime'=>$user->getPaymentAccountDateFormat()])}}</p>
|
|
@elseif($user->daysActiveAccount() < config('mivita.remind_sec_days'))
|
|
{{-- 33 --}}
|
|
<h5 class="alert badge-warning">{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}</h5>
|
|
@if($user->payment_account && $user->isAboOption())
|
|
@if($user->daysActiveAccount() < config('mivita.abo_booking_days') )
|
|
<p>{{ __('membership.home_copy_SEPA_33', ['price'=> 'von '.$user->payment_order_product->getFormattedPrice().' EUR', 'pay_date'=>Carbon::parse($user->payment_account)->modify('- '.config('mivita.abo_booking_days').' days')->format('d.m.Y')]) }}</p>
|
|
@else
|
|
<p>{{ __('membership.home_copy_SEPA_32', ['price'=> 'von '.$user->payment_order_product->getFormattedPrice().' EUR', 'pay_date'=>Carbon::parse($user->payment_account)->modify('- '.config('mivita.abo_booking_days').' days')->format('d.m.Y')]) }}</p>
|
|
@endif
|
|
<hr>
|
|
@endif
|
|
<p>{{__('membership.home_copy_last_33', ['days'=>$user->daysActiveAccount()])}}</p>
|
|
@else
|
|
{{-- 32 / 31 --}}
|
|
<h5 class="alert badge-default">{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}</h5>
|
|
@if($user->payment_account && $user->isAboOption())
|
|
{{ __('membership.home_copy_SEPA_32', ['price'=> 'von '.$user->payment_order_product->getFormattedPrice().' EUR', 'pay_date'=>Carbon::parse($user->payment_account)->modify('- '.config('mivita.abo_booking_days').' days')->format('d.m.Y')]) }}
|
|
<hr>
|
|
@endif
|
|
<p>{{__('membership.home_copy_last_31', ['days'=>$user->daysActiveAccount()])}}</p>
|
|
|
|
@endif
|
|
</div>
|
|
<div class="card-footer py-3">
|
|
<a href="{{route('user_membership')}}" class="btn btn-info mb-3"><i class="ion ion-ios-refresh text-default mr-1"></i> Mitgliedschaft jetzt hier verwalten</a>
|
|
</div>
|
|
</div>
|
|
<!-- / SHOP -->
|
|
</div>
|
|
@endif
|
|
@endif |