@extends('front.layout.master') @section('content')

{{ $patient->title }}

{{ __('generic.Empowering patients with the right information for better decision-making and improved well-being.') }}

@if ($patient->description) @foreach ($patient->description as $description) @php $bgColor = $loop->even ? 'bg-[#f1f1f1]' : 'bg-white'; @endphp @if ($description['type'] === 'editor')

{!! $description['title'] !!}

{!! preg_replace_callback('/
    (.*?)<\/ul>/is', function($matches) { // Add ul styling and bullet styling to li $ul = $matches[0]; // Add custom classes for ul and li $ul = preg_replace('/
      /i', '
        ', $ul); $ul = preg_replace('/
      • /i', '
      • ', $ul); return $ul; }, $description['content']) !!}
@elseif ($description['type'] === 'repeater')

{!! $description['title'] !!}

{!! $description['sub_title'] !!}
@foreach ($description['items'] as $item)
@if ($item['icon'])
{{ $item['title'] }}
@endif

{!! $item['title'] !!}

{!! $item['description'] !!}

@endforeach
@endif @endforeach @endif
@endsection