BIODATA
{{-- Left content --}} {{-- Right photo --}}
@if($user->education->count()) @endif @if($user->career->count()) @endif @php $groupedSiblings = $user->families->siblings ? $user->families->siblings->groupBy('relation') : collect(); @endphp @if($groupedSiblings->count()) @foreach($groupedSiblings as $relation => $siblings) @endforeach @endif
Name: {{ $user->first_name }}
Date of Birth: {{ date("j F Y", strtotime($user->member->birthday)) }}
Place of Birth: {{ $user->astrologies->city_of_birth ?? '-' }}
Education : {{ $user->education->map(function($edu) { return $edu->degree . ($edu->institution ? ' at ' . $edu->institution : ''); })->join(', ') }}
Job/Occupation : {{ $user->career->map(function($job){ return $job->designation . ($job->company ? " at {$job->company}" : '') . ($job->present ? ' (Present)' : ''); })->implode(', ') }}
Height: {{ $user->physical_attributes->height ?? '-' }} feet
Weight: {{ $user->physical_attributes->weight ?? '-' }} kg
Father's Name: {{ $user->families->father ?? '-' }}
Father's Occupation: {{ $user->families->father_occupation ?? '-' }}
Mother's Name: {{ $user->families->mother ?? '-' }}
Mother's Occupation: {{ $user->families->mother_occupation ?? '-' }}
Grand Father Name: {{ $user->families->grand_father ?? '-' }}
Grand Mother Name: {{ $user->families->grand_mother ?? '-' }}
{{ ucwords(str_replace('_', ' ', $relation)) }} List : {!! $siblings->pluck('name')->implode('
') !!}
Contact Number: {{ $user->phone }}
@if($photoData) Profile Photo @endif
{{-- {{ dd("test") }} --}}