@extends('layouts.layout-2') @section('content')

@if($view === 'ot') {{ __('navigation.customerabos') }} @endif @if($view === 'me') {{ __('navigation.myabos') }} @endif / {{ __('navigation.overview') }}

@if(isset($chartData)) @include('user.abo._abo_chart') @endif
@if(!$user_abos || $user_abos->isEmpty())
{{ __('abo.abo_delivery') }}

@endif @foreach($user_abos as $user_abo)

{{ __('tables.start_date') }}
{{ $user_abo->start_date }}
{{ __('tables.next_date') }}
{{ $user_abo->next_date }}
{{ __('tables.abo_delivery_day') }}
{{ \App\Services\HTMLHelper::getAboStrLang($user_abo->abo_interval) }}
{{ __('tables.last_date') }}
{{ $user_abo->last_date }}

{{ __('tables.status') }} / {{ __('tables.active') }}
{!! $user_abo->getStatusFormated() !!}  {!! get_active_badge($user_abo->active) !!}
{{ __('tables.abo_delivery') }}
{{ $user_abo->getCountOrders() }}
@if($view === 'ot')
{{ __('navigation.points') }}
{{ $user_abo->getFormattedTotalPoints() }} Pkt. @else
{{ __('tables.amount') }}
{{ $user_abo->getFormattedAmount() }} € @endif
{{ __('tables.payment') }}
{{ $user_abo->getPaymentType() }}
@if($view === 'ot')
{{ __('First name') }}
@if($user_abo->shopping_user) {{ $user_abo->shopping_user->billing_firstname }} @endif
{{ __('Last name') }}
@if($user_abo->shopping_user) {{ $user_abo->shopping_user->billing_lastname }} @endif
{{ __('E-Mail') }}
@if($user_abo->shopping_user) {{ $user_abo->shopping_user->billing_email }} @endif
{{ __('tables.customer') }}
@if($user_abo->shopping_user) @endif
@endif
@endforeach
@endsection