Full name: {{ $user->title }} {{ $user->name }}
@php $startDate = $user->dob; // Convert the start date to a DateTime object $startDateObj = new DateTime($startDate); // Get the current date $currentDateObj = new DateTime(); // Calculate the interval $interval = $startDateObj->diff($currentDateObj); // Get the difference in years and months $years = $interval->y; $months = $interval->m; @endphp Date of birth: {{ date('d/m/Y', strtotime($user->dob)) }} ({{ $years }} )
Gender: {{ $user->gender }}
Marital status: {{ $user->marital_status }}