@php
// Use Carbon to parse the dates
$startDate = \Carbon\Carbon::parse($education['start_date']);
$endDate = isset($education['end_date']) ? \Carbon\Carbon::parse($education['end_date']) : null;
// Get the years
$startYear = $startDate->format('Y');
$endYear = $endDate ? $endDate->format('Y') : 'Present'; // Show 'Present' if end_date is null
@endphp
{{ $startYear }} - {{ $endYear }}
{{ $education['title'] }}
-
{{ $education['institute'] }}
-
{{ $education['city'].', '.$education['country'] }}
{!! $education['description'] !!}
See more