@php $generalSetting = App\Models\GeneralSetting::first(); $logoPath = public_path('admin/Image/AppSettings/Logo/' . $generalSetting->system_logo); $logoData = base64_encode(file_get_contents($logoPath)); $logoSrc = 'data:image/' . pathinfo($logoPath, PATHINFO_EXTENSION) . ';base64,' . $logoData; @endphp User Data PDF

Members Report

@php $a = 1; @endphp @foreach ($users as $member) @php $relation = $member->relation_status_id ? App\Models\ProfileAttributeMeta::where('attribute_id', '3')->where('id', $member->relation_status_id)->first() : null; @endphp @if ($relation) @else @endif @endforeach
# Username Gender Age Relation Status City Country Register
{{ $a++ }} {{ $member->user_name }} {{ $member->gender }} {{ $member->age }}{{ $relation->name }}-{{ $member->User_detail ? $member->User_detail->city->name : '-' }} {{ $member->User_detail ? $member->User_detail->country->name : '-' }} {{formatDate($member->created_at) }}