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

{{ __('generic.About') }} {{ $specialty->name ?? '' }}

{{ $specialty->about['subtitle'] ?? '' }}

{!! $specialty->about ?? '' !!}
{{ $specialty->name ?? '' }}
@php $symptoms = $specialty->symptoms()->get(); @endphp @if(isset($symptoms))

{{ ($specialty->symptoms['title'] ?? '') }}

{{ __($specialty->symptoms['subtitle'] ?? '') }}

@foreach(($symptoms ?? []) as $index => $item)

{{ $item['title'] }}

{{ $item['description'] }}

@endforeach
@endif @php $causes_items = []; //ceck if string and convert to array if (is_string($specialty->causes['items'])) { // Split on both English and Arabic comma $causes_items = preg_split('/[,،]/u', $specialty->causes['items']); } else { $causes_items = $specialty->causes['items']; } @endphp @if(isset($causes_items) && is_array($causes_items) && count($causes_items) > 0 && isset($causes_items[0]['title']))
{{ $specialty->name }}

{{ $specialty->causes['title'] ?? '' }}

{{ $specialty->causes['subtitle'] ?? '' }}

@if(isset($causes_items) && is_array($causes_items))
@foreach($causes_items as $item)
  • {{ $item['title'] ?? $item }}
  • @endforeach
    @endif
    @endif

    {{ ($specialty->services['title'] ?? '') }}

    {{ $specialty->services['subtitle'] ?? '' }}

    @if(isset($specialty->services['items_parent']) && $specialty->services['items_parent'])
    @foreach(($specialty->services['items_parent'] ?? []) as $parentService)

    {{ $parentService['title'] }}

    @if(isset($parentService['items']) && is_array($parentService['items'])) @endif
    @endforeach
    @else
    @endif
    @php $whyChooseHtml = $specialty->why_choose_uhs; $dom = new DOMDocument(); libxml_use_internal_errors(true); $dom->loadHTML(mb_convert_encoding($whyChooseHtml, 'HTML-ENTITIES', 'UTF-8')); $h3s = []; $others = []; foreach ($dom->getElementsByTagName('body')->item(0)->childNodes as $node) { if ($node->nodeName === 'h3') { $h3s[] = $dom->saveHTML($node); } else { $others[] = $dom->saveHTML($node); } } libxml_clear_errors(); @endphp
    @foreach($h3s as $h3) {!! $h3 !!} @endforeach
    @foreach($others as $other) {!! $other !!} @endforeach
    @if($specialty->doctors->count() > 0)

    @if(app()->getLocale() == 'ar') {{ __('generic.Meet Our') }} {{ __('generic.Team') }} {{ $specialty->name }} @else {{ __('generic.Meet Our') }} {{ $specialty->name }} {{ __('generic.Team') }} @endif

    @endif @endsection