@extends('layouts.layout-2') @section('content') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

{{-- --}}
Willkommen zurück, {{$user->account->first_name}}!
Heute ist {{__('cal.weekdays.'.$now->format('l'))}}, {{$now->format('j')}}. {{__('cal.months.'.$now->format('F'))}} {{$now->format('Y')}}


@if($user->active == 1) @if($user->payment_account && $user->daysActiveAccount() <= config('mivita.remind_first_days'))
{{__('membership.home_hl') }}
@if($user->daysActiveAccount() <= 0) @if($user->isActiveAccount())
{{__('membership.home_copy_alert_35')}}

{{__('membership.home_copy_last_35', ['days'=>$user->daysActiveAccount(), 'datetime'=>$user->getPaymentAccountDateFormat()])}}

@else {{-- 35, 36 --}} @if($user->daysActiveAccount() == 0)
{{__('membership.home_copy_alert_36_today', ['datetime'=>$user->getPaymentAccountDateFormat()])}}
@else
{{__('membership.home_copy_alert_36', ['days'=>$user->daysActiveAccount()*-1, 'datetime'=>$user->getPaymentAccountDateFormat()])}}
@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')]) }}
@endif

{{__('membership.home_copy_last_36', ['days'=>$user->daysActiveAccount(), 'datetime'=>$user->getPaymentAccountDateFormat()])}}

@endif @elseif($user->daysActiveAccount() < config('mivita.remind_last_days') ) {{-- 33 --}}
{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}

{{__('membership.home_copy_last_34', ['days'=>$user->daysActiveAccount(), 'datetime'=>$user->getPaymentAccountDateFormat()])}}

@elseif($user->daysActiveAccount() < config('mivita.remind_sec_days')) {{-- 33 --}}
{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}
@if($user->payment_account && $user->isAboOption()) @if($user->daysActiveAccount() < config('mivita.abo_booking_days') )

{{ __('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')]) }}

@else

{{ __('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')]) }}

@endif
@endif

{{__('membership.home_copy_last_33', ['days'=>$user->daysActiveAccount()])}}

@else {{-- 32 / 31 --}}
{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}
@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')]) }}
@endif

{{__('membership.home_copy_last_31', ['days'=>$user->daysActiveAccount()])}}

@endif
@endif @endif {{--
--}}
{{__('Mitgliedschaft') }}
@if($user->isActiveAccount() )
{{__('Berater-Mitgliedschaft aktiv')}} {{__('bis zum:')}} {{ $user->getPaymentAccountDateFormat() }}
@else
{{__('Berater-Account inaktiv')}} @if($user->payment_account) {{__('abgelaufen am')}}: {{ $user->getPaymentAccountDateFormat() }} @endif
@endif
@if($user->isActiveShop())
{{__('Berater-Online-Shop aktiv')}} {{__('bis zum')}}: {{ $user->getPaymentShopDateFormat() }}
@else
{{__('Berater-Shop inaktiv')}} @if($user->payment_shop) {{__('abgelaufen am')}}: {{ $user->getPaymentShopDateFormat() }} @endif
@endif
{{__('Your Shop') }}
@if($user->isActiveAccount()) @if($user->isActiveShop()) @if($user->shop)

{{__('open since')}} {{__('at')}} {{ $user->shop->getActiveDateFormat() }}

@if($user->shop->active)

{{__('Status')}} {{ __('active') }}

@else

{{__('Status')}} {{ __('inactive') }}

@endif @else {{__('open your shop')}} @endif @else

{{__('Shop nicht gebucht')}}

@endif @endif
@if($user->isActiveShop()) @endif
{{__('Activities') }}
@if($user->active == 1) @if($user->files->count()) @foreach($user->files()->whereIdentifier('contract')->get() as $file) MIVITA_Beratervertrag.pdf
@endforeach @endif

{{__('Daten vollständig, freigeschaltet')}} {{__('at')}}: {{ $user->getActiveDateFormat() }}

@endif @if($user->account_id) @if($user->active == 1) @if($user->agreement)

{{__('Einverständniserklärung')}} {{__('at')}}: {{ $user->getAgreementFormat() }}

@else

{{__('Einverständniserklärung')}} {{ __('nicht akzeptiert') }}

@endif @endif @if($user->account->data_protection)

{{__('Privacy policy approved')}} {{__('at')}}: {{ $user->account->getDataProtectionFormat() }}

@endif @endif @if($user->confirmed == 1)

{{__('E-Mail verified')}} {{__('at')}}: {{ $user->getConfirmationDateFormat() }}

@endif
{{__('Daten') }}
@if($user->active == 1)

{{__('Ändere Deine persönlichen Datan.')}}

{{ __('Adjust data') }} @endif
{{ __('Sicherheit') }}
@if($user->active == 1) @if(!$user->isPasswort())

{{__('Assign a password for your account.')}}

{{__('Create Password')}} @else

{{__('Ändere Dein persönliches Passwort.')}}

{{__('Change password')}} @endif @endif
{{ __('Anmeldung') }}
@if($user->active == 1)

{{__('Ändere Deine E-Mail Adresse.')}}

{{__('Change E-Mail')}} @endif
{{ __('Logout') }}

Abmelden und bis bald.

{{ __('Logout') }}

@endsection