@extends('layouts.app') @section('content')

Medlemsoversigt

Aktiv:
iviggo ({{(isset($totals['website_status']['active'])) ? $totals['website_status']['active'] : '0'}})
{{--
Partnere ({{(isset($totals['marketing_status']['active'])) ? $totals['marketing_status']['active'] : '0'}})
--}}
Inaktiv:
iviggo ({{(isset($totals['website_status']['inactive'])) ? $totals['website_status']['inactive'] : '0'}})
{{--
Partnere ({{(isset($totals['marketing_status']['inactive'])) ? $totals['marketing_status']['inactive'] : '0'}})
--}}

Konti i alt

{{$totals['users']}}

Medlemmer

{{$totals['members']}}

Træner

{{$totals['coaches']}}

{{--

Area Managers

{{$totals['area_managers']}}

--}} {{--

VIP

{{$totals['vips']}}

--}} {{--

Partners

{{$totals['partners']-$totals['area_managers'] - $totals['vips']}}

--}}
{{-- --}} {{-- --}} @foreach($users as $user) @php $canUpgrade = false; @endphp {{-- --}} {{-- --}} @endforeach
# Grundlæggende Info LandRefferal Invite codeTypePartnersStatus Handlinger
{{$loop->iteration}} {{$user->first_name.' '.$user->last_name}}
{{$user->email}}
{{isset($user->coachInfo->mobile) ? $user->coachInfo->mobile:''}}
{{isset($user->coachInfo->invite_code)?$user->coachInfo->invite_code:'' }}
{{isset($user->coachInfo->country)?$countries[$user->coachInfo->country]:''}}{{$user->coachInfo->referral_invite_code}} @if($user->hasRole('coach')) Coach @else Member @php $canUpgrade = true; @endphp @endif @if($user->marketing_terms=='yes' && $user->hasRole('is_am')) Area manager
Accepted
@elseif($user->marketing_terms=='yes' && $user->hasRole('is_vip')) Coach
Accepted
@elseif($user->marketing_terms=='yes') Partner
Accepted
@else Not Accepted @endif @if($user->marketing_terms=='yes') {{ucwords($user->marketing_status)}} @endif
{{($user->status=='active') ? 'Aktiver' : 'Deaktiver'}} {{-- @if($canUpgrade) @endif--}}
@endsection