@props(['data']) @php $parent = reset($data); $child = array_values(array_slice($data, 1)); @endphp @if (!empty($parent)) {{ $parent['title'] }} {{ $parent['sub title'] }} @endif @foreach ($child as $key => $value) {{ $value['year'] }} @endforeach @foreach ($child as $key => $value) {{ $value['description'] }} @if (strlen($value['description']) >= 440) Learn More @endif @endforeach @foreach ($child as $key => $value) @endforeach {{-- @if (!empty($parent)) {{ $parent['title'] }} {{ $parent['sub title'] }} @endif @foreach ($child as $key => $value) {{ $value['year'] }} @endforeach @foreach ($child as $key => $value) {{ $value['description'] }} Learn More @endforeach @if (!empty($parent)) @endif --}}
{{ $value['description'] }}