 }})
Before
No changes made
@endifName:
{{ ucfirst($user->name ?? 'N/A') }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'name')Email:
{{ $user->email ?? 'N/A' }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'email')Phone Number:
{{ $user->country_code ? $user->country_code : 'N/A' }}{{ $user->phone ? $user->phone : '' }}
Status:
@if ($user->status === 0) Inactive @elseif ($user->status === 1) Active @elseif ($user->status === 2) Deactive @else N/A @endif
Gender:
{{ $user->sex ? $user->sex : 'N/A' }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'sex')Daily Limit:
{{ $user->surveyLimit->limit ?? 'N/A' }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'survey limit')Location:
{{ $user->location ?? 'N/A' }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'location')Nationality:
{{ ucfirst($user->nationality ?? 'N/A') }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'nationality')Timezone:
{{ $user->timezone ?? 'N/A' }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'timezone')Document:
{{ $user->document_type ?? 'N/A' }}
@foreach ($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'document_type')No document uploaded
@endifBefore
User Added Locations
-
@foreach ($locations as $location)
- {{ ucfirst($location) }} @endforeach
No locations added
@endifBefore
-
@foreach ($auditLocations as $auditLocation)
- {{ ucfirst($auditLocation['location']) }} @if(isset($auditLocation['status']) && $auditLocation['status'] === 'deleted') Deleted @endif @endforeach
Interests
-
@foreach ($interests as $interest)
- {{ $interest }} @endforeach
No interests available
@endifBefore
-
@foreach ($auditInterests as $interest)
@if (!empty($interest->interest->title))
@php
$hasPreviousInterests = true;
@endphp
- {{ $interest->interest->title }} @if (isset($interest->status) && $interest->status == "removed") Deleted @endif @endif @endforeach
No changes made
@endifNo changes made
@endifSub Interests
-
@foreach ($subInterests as $subInterest)
- {{ $subInterest }} @endforeach
No sub interests available
@endifBefore
-
@foreach ($auditSubInterests as $subInterest)
- {{ @$subInterest->subInterest->title }} @if(isset($subInterest->status) && $subInterest->status == "removed") Deleted @endif @endforeach
Date of Birth:
{{ isset($user->age) && !empty($user->age) ? \Carbon\Carbon::createFromFormat('d/m/Y', $user->age)->format('j M Y') : 'N/A' }}
@foreach($userAuditDetails as $auditDetail) @if ($auditDetail['field_name'] == 'age')Total Reward Points: {{$totalRewardPoints}}
@if ($rewardPoints->isEmpty()) No reward points available. @else
-
@foreach ($rewardPoints as $reward)
- {{ $reward->points }} points earned for {{ $reward->type }} @endforeach
User Response on Surveys
Survey {{ $count + 1 }}: {{ ucfirst($surveyName) }}
-
@foreach ($questions as $response)
-
Based on: {{ $surveyType ?? 'N/A' }}
Question: {{ $response['question'] }}
Answer: {{ ucfirst($response['answer']) }}
@endforeach
No survey responses available.
@endif