@extends('layouts.app') @section('title', 'My account') @section('content') @php($status = $member->status())

{{ $welcome ? 'Welcome' : 'Hello' }}, {{ $member->firstName() }}

{{ $member->statusLabel() }} {{ $member->tier->name }} @if($status === 'active'){{ $member->daysLeft() }} days left@endif
@if($member->member_no)My card@endif {{ $member->member_no ? 'Renew or upgrade' : 'Complete payment' }} Edit profile
@if($welcome && $member->member_no)
Your payment was received and your membership is active until {{ $member->expires_at->format('d M Y') }}. Your member number is {{ $member->member_no }}.
@endif @if($status === 'pending')
Your registration is not paid yet. @if($pendingPayment)Continue your payment or@endif start a new payment.
@elseif($status === 'grace')
Your membership expired on {{ $member->expires_at->format('d M Y') }}. You are in the {{ config('malkia.grace_days') }}-day grace period. Renew now to keep your benefits.
@elseif($status === 'expired')
Your membership expired on {{ $member->expires_at->format('d M Y') }}. Renew to use your card again.
@elseif($status === 'suspended')
Your membership is suspended. Please contact the Malkia wa Nguvu office.
@endif
Member number{{ $member->member_no ?? 'After payment' }}
Valid until{{ $member->expires_at?->format('d M Y') ?? '-' }}
Malkia Points{{ $points }}
Members you invited{{ $referralCount }}

My events

@forelse($events as $event)
{{ $event->name }} @if($attended->contains($event->id))Attended@endif
{{ $event->type }} · {{ $event->starts_at->format('d M Y, H:i') }} · {{ $event->venue }}
@empty

You have not registered for any events yet. Browse events.

@endforelse

My certificates

@forelse($certificates as $c)
{{ $c->event->name }}
{{ $c->created_at->format('d M Y') }}
View
@empty

Attend a Maarifa Camp or Tuyajenge Camp to earn a certificate.

@endforelse

Invite fellow women entrepreneurs

@if($member->member_no)

Share your member number as a referral code. You earn {{ config('malkia.points.referral') }} points for every new member who joins with it.

{{ $member->member_no }}

Invite link: {{ route('join', ['ref' => $member->member_no]) }}

@else

Your referral code is available once your membership is paid.

@endif
Event attended+{{ config('malkia.points.attendance') }}
Certificate earned+{{ config('malkia.points.certificate') }}
New member referred+{{ config('malkia.points.referral') }}

Payment history

@forelse($payments as $p)
{{ $p->created_at->format('d M Y') }} · {{ $p->tier->name }}
{{ \App\Models\Payment::METHODS[$p->method] ?? $p->method }} {{ $p->channel ? '· '.$p->channel : '' }}
{{ $p->formattedAmount() }}
{{ \App\Models\Payment::STATUS_LABELS[$p->status] ?? $p->status }}
@empty

No payments yet.

@endforelse
@endsection