@extends('frontend.layouts.app')
@section('content')
{{ translate('All Active Members') }}
{{ $user->first_name . ' ' . $user->last_name }}
{{ translate('Age') }}
{{ \Carbon\Carbon::parse($user->member->birthday)->age }}
{{ translate('Height') }}
@if (!empty($user->physical_attributes->height))
{{ $user->physical_attributes->height }}
@endif
{{ translate('Religion') }}
@if (!empty($user->spiritual_backgrounds->religion_id))
{{ $user->spiritual_backgrounds->religion->name }}
@endif
{{ translate('Caste') }}
@if (!empty($user->spiritual_backgrounds->caste_id))
{{ $user->spiritual_backgrounds->caste->name }}
@endif
{{ translate('First Language') }}
@if ($user->member->mothere_tongue != null)
{{ \App\Models\MemberLanguage::where('id', $user->member->mothere_tongue)->first()->name }}
@endif
{{ translate('Education') }}
@if($user->education->count() > 0)
{{ $user->education->where('is_highest_degree', 1)->first()->degree ?? $user->education->last()->degree }}
@endif
{{ translate('Profession') }}
@if($user->career->count() > 0)
{{ $user->career->where('present', 1)->first()->designation ?? $user->career->last()->designation }}
@endif
{{ translate('Location') }}
@php
$present_address = $user->addresses->where('type', 'present')->first();
@endphp
@if (!empty($present_address->country_id))
{{ $present_address->country->name }}
@endif