@php
$isNumbered = collect($section['content'])->first() && preg_match('/^[0-9]+\./', collect($section['content'])->first());
@endphp
@foreach($section['content'] as $item)
-
@if($isNumbered && preg_match('/^([0-9]+)\.\s*(.*)/', $item, $matches))
{{ $matches[1] }}
{!! $matches[2] !!}
@else
{!! $item !!}
@endif
@endforeach