@if ($isAleardyAMember)

You are already a member of this group savings

Go to Savings Go Home
@else

Hello, {{auth()->user()->name}}

You have been invited to join a group savings account with the following details

Name:

{{$savings->name}}

Description:

{{$savings->description}}

Type:

{{$savings->type}}

@if ($savings->type === 'flexible')

Savings target amount:

{{formatNumber($savings->target_amount)}}

@else

Each member target amount:

{{formatNumber($savings->member_target_amount)}}

@endif
{{-- savings members --}}

Group Members

@foreach ($savings->members as $user)

{{$user->name}}

{{$user->pivot->role}}

@endforeach
Accept Invite
@endif