@extends('layouts.front.master') @section('contant')
@if($course->mark_bestseller == 'Yes')

Bestseller

@endif {{ $course->name }}

{{ $course->name ?? '' }}

{{ $course->classes_heading ? $course->classes_heading : 'Instructor-led live online' }} Classes

{{ $course->classes_heading ? $course->classes_heading : 'Instructor-led live online' }} Training (Weekday/Weekend)
@php $rating = $course->rating; $fullStars = floor($rating); $hasHalfStar = ($rating - $fullStars) >= 0.5; $emptyStars = 5 - $fullStars - ($hasHalfStar ? 1 : 0); @endphp @if($rating !== null)
{{-- Full stars --}} @for ($i = 0; $i < $fullStars; $i++) @endfor {{-- Half star --}} @if ($hasHalfStar) @endif {{-- Empty stars --}} @for ($i = 0; $i < $emptyStars; $i++) @endfor
{{ number_format($rating, 1) }} ({{ $course->r_count }} Review) @endif {{-- --}}
@php $course_arr = courseOverview($course_id); $descData = json_decode($course_arr->description); $i=0; @endphp
{!! $course->short_description ?? '' !!}
{!! $course->long_description ?? '' !!}

Course Descriptions

@if($descData!=null) @foreach($descData as $data)

{{ $data[1] }}

@php $i++; @endphp @endforeach @endif

Curriculum Designed by Experts

@if(count($course->topic)>0) @foreach ($course->topic as $topic)

{!! getTopicDescription($topic->id) !!}

@foreach ($topic->lecture as $lecture)
{{ $lecture->name }}
@endforeach
{!! $topic->hands_on !!}
@endforeach @endif
@php $course_id = $course->id; if($course->course_faq_id !="null"){ $courseId =$course->course_faq_id; }else{ $courseId =[]; } $faq_arr = Course_Faq($courseId); @endphp

Course Descriptions

@foreach ($faq_arr as $faqs)

{!! $faqs->answer !!}

@endforeach
Review
@php $inc=0; @endphp @foreach($reviewData as $review)
image
{{ ucfirst($review->user_name[0]) }} {{$review->user_name}}
@if($review->rating != null)
@php $fullStars = floor($review->rating); $hasHalfStar = ($review->rating - $fullStars) >= 0.5; $emptyStars = 5 - $fullStars - ($hasHalfStar ? 1 : 0); @endphp {{-- Full stars --}} @for ($i = 0; $i < $fullStars; $i++) @endfor {{-- Optional half star (if needed and you want to include it visually) --}} @if ($hasHalfStar) {{-- Or a suitable half-star icon --}} @endif {{-- Empty stars --}} @for ($i = 0; $i < $emptyStars; $i++) @endfor
@endif
@if($inc==10) @php $inc=0; @endphp @endif @endforeach

Cert Solution Course Features

@php $tf_arr = training_feature($course->training_feature_ids); @endphp @if(count($tf_arr)>0)
@foreach ($tf_arr as $tf)
{{ $tf->name }}
@php $items = explode(',', $tf->description); @endphp @if(count($items) > 0)
    @foreach ($items as $item)
  • {{ trim($item) }}
  • @endforeach
@else

No items found.

@endif
@endforeach
@endif

Certification FAQ

@php $fnq_arr = fnq($fnq_id) @endphp @foreach ($fnq_arr as $fnqs)

{!! $fnqs->answer !!}

@endforeach @if($course->certification =='Yes')
@if(!empty($course->certificate_file)) certificate @else demo certificate @endif
@else
demo certificate
@endif

{{ $course->name }}

Training (Weekday/Weekend)

  • Certifications: {{ $course->certification ?? '' }}

@php $date = \Carbon\Carbon::now(); $to = \Carbon\Carbon::createFromFormat('Y-m-d H:s:i', $date); $from = \Carbon\Carbon::createFromFormat('Y-m-d', $course->price_deadline); $diff_in_days = $to->diffInDays($from); @endphp
{{ Config::get('app.currency_icon') }}{{ $course->price }} {{ Config::get('app.currency_icon') }}{{ $course->cost }}
{{ Config::get('app.currency_icon') }}{{ $course->price_diff }} Off
@if($diff_in_days <=7) {{$diff_in_days}} days left at this price! @endif
@if(Auth::check())
@else @endif {{-- --}}
{{--
POPULAR COURSES

Explore Our Popular shape Courses

@foreach($relatedCourses as $coursedata) @php $coursename = $coursedata->name; // Convert to lowercase and remove special characters $cleanedName = preg_replace('/[^A-Za-z0-9\-]/', '', strtolower($coursename)); // Generate slug $courseName= Str::slug($cleanedName); $coursestring = str_replace(' ', '-', $courseName); @endphp
{{ $coursedata->name }}
{{ Config::get('app.currency_icon') }}{{ $coursedata->price }}

{{$coursedata->name ?? '' }}

@if($coursedata->rating != null)
@for($i = 0; $i < 5; $i++) @endfor
@for($i = 0; $i < 5; $i++) @endfor
@endif
@endforeach
--}}
image
image
image
Discover your perfect program in our courses.

Related Coursesshape')}}

@if(count($relatedCourses) > 0) @foreach($relatedCourses as $coursedata) @php $coursename = $coursedata->name; // Convert to lowercase and remove special characters $cleanedName = preg_replace('/[^A-Za-z0-9\-]/', '', strtolower($coursename)); // Generate slug $courseName= Str::slug($cleanedName); $coursestring = str_replace(' ', '-', $courseName); @endphp
@if($coursedata->mark_bestseller == 'Yes')

Bestseller

@endif {{ $coursedata->name }}
{{ Config::get('app.currency_icon') }}{{ $coursedata->price }}
{{ Config::get('app.currency_icon') }}{{ $coursedata->price_diff }} Off

{{$coursedata->name}}

@if($coursedata->rating != null)
@for($i = 0; $i < 5; $i++) @endfor
@for($i = 0; $i < 5; $i++) @endfor
{{ number_format((float)$coursedata->rating, 1, '.', '') }} ( @if($coursedata->r_count > 1000) {{ round($coursedata->r_count / 1000, 1) . 'k' }} @else {{ $coursedata->r_count }} @endif )
@endif
@endforeach @endif
{{-- jquery --}} @if(Auth::check()) @endif @endsection