@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('main.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('main.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('main.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('main.remind_sec_days')) {{-- 33 --}}
{{ __('membership.home_copy_alert_31', ['datetime'=>$user->getPaymentAccountDateFormat()]) }}
@if($user->payment_account && $user->isAboOption()) @if($user->daysActiveAccount() < config('main.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('main.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('main.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('main.abo_booking_days').' days')->format('d.m.Y')]) }}
@endif

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

@endif
@endif @endif {{--
--}}
{{__('Mitgliedschaft') }}
@if($user->isActiveAccount() )
{{__('Vertriebspartner-Mitgliedschaft aktiv')}} {{__('bis zum:')}} {{ $user->getPaymentAccountDateFormat() }}

{{__('Aktive Rolle')}}: @if($user->m_level && $user->user_level) {{ $user->user_level->name }} @endif


{{__('Umsätze')}} {{ date('m.Y') }}
{{__('Umsatz gesamt')}}: {!! \App\Services\UserMarign::getMontlyPrice($user, null, true) !!} €*
{{__('Umsatz Staffelrabatt')}}: {!! \App\Services\UserMarign::getMontlyAmount($user, null, true) !!} €*
{{__('Umsatz Zahlung offen')}}: {!! \App\Services\UserMarign::getMontlyPriceOpen($user, null, true) !!} €*

{{__('Provision')}} {{-- date('m.Y') --}}
{{__('Vertriebspartner Provision')}} pending: {!! \App\Services\UserMarign::getMontlyPartnerCommissionPending($user, null, true) !!} €*
{{__('Vertriebspartner Provision')}} bestätigt: {!! \App\Services\UserMarign::getMontlyPartnerCommissionOpen($user, null, true) !!} €*

* Nettobeträge


{{__('Guthaben')}}: {{ $user->getFormattedPaymentCredit() }} €


@else
{{__('Vertriebspartner-Account inaktiv')}} @if($user->payment_account) {{__('abgelaufen am')}}: {{ $user->getPaymentAccountDateFormat() }} @endif
@endif
{{__('Activities') }}
@if($user->active == 1)

{{__('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
@if($user->active == 1) @if($user->files->count()) @foreach($user->files()->whereIdentifier('contract')->get() as $file) @endforeach @endif @endif
{{__('Daten') }}
@if($user->active == 1)

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

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

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

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

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

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

Abmelden und bis bald.

{{ __('Logout') }}

@endsection