@extends('frontend.maintemplate.maintemplate') @section('title', $courseCategory->name . ' :: AgeLess Institute') @section('content')
@if (!empty($breadcrumbs)) @foreach ($breadcrumbs as $index => $breadcrumb) @if (!empty($breadcrumb['url']) && $index !== count($breadcrumbs) - 1) {{ $breadcrumb['text'] }} @else {{ $breadcrumb['text'] }} @endif @endforeach @endif
{{-- Back button aligned right --}}
@php $desc = $courseSubCategory->getTranslation('description', app()->getLocale()); $cleanDesc = trim(strip_tags($desc)); $charLimit = 410; // legacy; not used for button visibility @endphp
Overview {{-- {!! $courseSubCategory->description ?? '' !!} --}} {!! $desc !!}
{{-- --}}
@php $sr = 1 @endphp @php $topics_price = []; @endphp @foreach ($courses as $course)
@csrf
@if (!empty($course->show_on_details_page_data)) @foreach ($course->show_on_details_page_data as $columnName) @endforeach @endif @foreach ($course->courseTopics->sortBy('sequence_number') as $courseTopic) @php $types = []; @endphp @if (in_array('Level', $course->show_on_details_page_data)) @endif @if (in_array('Type', $course->show_on_details_page_data)) @endif @if (in_array('Practical Hours', $course->show_on_details_page_data)) @endif @if (in_array('Price', $course->show_on_details_page_data)) @endif @endforeach
Topics Covered {{ $columnName }}
@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) }} {{ !empty($courseTopic->topic->practical_hours) && $courseTopic->topic->practical_hours != 0 ? $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; } if($type === 'demo') { $price += $courseTopic->demo_price; } } } $topics_price[ $courseTopic->topic_id ][$type] = $price; @endphp @if ($price > 0) ₹ {{ number_format($price) }} @else Complimentary @endif
@if($course->courseTopics->count() > 0) @if ($course->current_fee > 0)
@if($course->discounted_price != null)
Individual Course Price
₹ {{ number_format($course->fees_MRP, 0, '.', ',') }}
Discount
-₹ {{ number_format($course->fees_MRP - $course->current_fee)}}
@endif
Total Package Price
₹ {{ number_format($course->current_fee, 0, '.', ',') }}
@endif @endif
@php $sr++ @endphp @endforeach
@endsection