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

{{ $course->title }}

@if(!empty($course->buttons))
@foreach($course->buttons as $button) @if($button['link_type'] == 'page') @php $button_url = pageRoute($button['url']); @endphp @else @php $button_url = $button['external_url']; @endphp @endif {{ $button['text'] ?? '' }} @endforeach
@endif

{{ __('generic.Course Introduction') }}

{!! $course->introduction !!}

{{ __('generic.Key Features') }}

@foreach($course->keys as $key)
@php $iconUrl = $key->getFirstMediaUrl('icons'); if (!$iconUrl && isset($key->getAttributes()['icon']) && $key->getAttributes()['icon']) { $iconUrl = Storage::disk('public')->url($key->getAttributes()['icon']); } @endphp @if($iconUrl) {{ $key->getTranslation('title', app()->getLocale()) }} @endif

{{ $key->title }}

{{ $key->description ?? '' }}

@endforeach

{{ __('generic.Who Should Attend') }}

{{ __('generic.Healthcare professionals working in critical care settings, including') }}

@foreach($course->attendees as $attendee)
@php $iconUrl = $attendee->getFirstMediaUrl('icons'); @endphp @if($iconUrl) {{ $attendee->getTranslation('title', app()->getLocale()) }} @endif

{{ $attendee->getTranslation('title', app()->getLocale()) }}

@endforeach

{{ __('generic.Course Details') }}

Fees Icon

{{ __('generic.Duration') }}

{{ head($course->details)['description'] ?? '' }}

Fees Icon

{{ __('generic.Payment and Fees') }}

{{ last($course->details)['description'] ?? '' }}

@endsection