@extends('frontend.maintemplate.maintemplate') @section('title', $courseCategory->name . ' :: AgeLess Institute') @section('content')
{{ $courseSubCategory->name }}
@if(!empty(trim($courseSubCategory->sub_title_meta))) {{ $courseSubCategory->sub_title_meta }} @endif
Total Practical Hours: {{$courses->sum('duration')}} Hrs

Overview: {!! str_replace(['

', '

'], '', $courseSubCategory->description) !!}

@if(!empty(trim($courseSubCategory->sub_title)))
{{ $courseSubCategory->sub_title }}
@endif
@php // Check if any course has topics $hasTopics = false; foreach ($courses as $course) { if ($course->courseTopics->isNotEmpty()) { $hasTopics = true; break; } } @endphp @if ($hasTopics)
@php $sr = 1 @endphp @php $topics_price = []; @endphp @foreach ($courses as $course)
{{--

Total Flying Hours: 24 Hrs

--}}
@csrf {{-- --}}
@if ($course->course_type === 'theory') @else @endif @foreach ($course->courseTopics->sortBy('sequence_number') as $courseTopic) @if ($course->course_type === 'theory') @elseif ($typeStr === 'theory') @else @endif @endforeach
Topics Covered Level TypePractical HoursPrice
@if(!empty($courseTopic->topic->url)) {{ $courseTopic->topic->title }} {{ $courseTopic->topic->title }} @else {{ $courseTopic->topic->title }} @endif {{ ucwords($courseTopic->level) }} @php $types = is_array($courseTopic->types) ? $courseTopic->types : json_decode($courseTopic->types, true); $typeStr = $types ? implode(' + ', $types) : 'N/A'; @endphp {{ ucwords($typeStr) }} -{{$courseTopic->topic->practical_hours}} Hrs @php $price = 0; if ($types) { foreach ($types as $type) { if ($type === 'theory') { $price += $courseTopic->theory_price; } if ($type === 'practical') { $price += $courseTopic->practical_price; } } } $topics_price[$courseTopic->topic_id][$type]=$price; @endphp @if($price > 0) ₹ {{ number_format($price) }} @else Complimentary @endif
Course Price
₹ {{ number_format($course->fees_MRP, 0, '.', ',') }}
Discounted Price
₹ {{ number_format($course->discounted_price, 0, '.', ',') }}
@php $sr++ @endphp @endforeach
@else

Course not available in this section

@endif
Total Practical Hours: {{$courses->sum('duration')}} Hrs

Overview: {!! str_replace(['

', '

'], '', $courseSubCategory->description) !!}

@if(!empty(trim($courseSubCategory->sub_title)))
{{ $courseSubCategory->sub_title }}
@endif
@php // Check if any course has topics $hasTopics = false; foreach ($courses as $course) { if ($course->courseTopics->isNotEmpty()) { $hasTopics = true; break; } } @endphp @if ($hasTopics)
@csrf
@php $displayedTopics = []; @endphp @foreach ($courses as $course) @foreach ($course->courseTopics->sortBy('sequence_number') as $courseTopic) {{-- @foreach ($course->courseTopics as $courseTopic) --}} @php $topicId = $courseTopic->topic->id; @endphp @if (!in_array($topicId, $displayedTopics)) @php $displayedTopics[] = $topicId; @endphp @endif @endforeach @endforeach
Topic Coverd Level Type Practical Hours Price
@if(!empty($courseTopic->topic->url)) {{ $courseTopic->topic->title }} {{ $courseTopic->topic->title }} @else {{ $courseTopic->topic->title }} @endif {{ ucwords($courseTopic->level) }}
@php $types = is_array($courseTopic->types) ? $courseTopic->types : json_decode($courseTopic->types, true); $typeStr = $types ? implode(' + ', $types) : 'N/A'; @endphp @foreach ($types as $srk=>$type)
@endforeach
@if ($typeStr == 'theory') - @else{{$courseTopic->topic->practical_hours}} Hrs @endif @php $price = 0; if ($types) { foreach ($types as $type) { if ($type === 'theory') { $price += $courseTopic->theory_price; } if ($type === 'practical') { $price += $courseTopic->practical_price; } } } @endphp @if($price > 0) ₹ {{ number_format($price) }} @else Complimentary @endif
Course Price
Discount
0
@else

Course not available in this section

@endif
@endsection