@foreach($team->getTeamMembers() as $teamMember) @endforeach

Dear {{ ucwords(strtok($name, " ")) }},

Below is the team performance for {{ $team->team_name }}

The team score for {{ $month }}/{{ $year }} was {{ $total }}.

@forelse($variables as $variable) @if($loop->last) @endif @empty @endforelse
Task Completion Score
{{ $variable['questionVariables']['question_relating_performance_measurement'] }} @php if ($variable['answer'] == 1) { if (isset($variable->questionVariables->yes_calculat) && $variable->questionVariables->yes_calculat == 1) { $sign = ''; } else { $sign = '-'; } } else { if (isset($variable->questionVariables->no_calculat) && $variable->questionVariables->no_calculat == 1) { $sign = ''; } else { $sign = '-'; } } @endphp {{ ($variable['score'] != 0) ? $sign . $variable['score'] : $variable['score'] }}
Total {{ $total }}

No variable assessed in current month.

Team members:

{{ $teamMember->name }}

Kind regards,
{{ isset($company) ? $company->company : app('tenant')['company']?->company }}