@extends('frontend-rtl.layouts.app'.config('theme_layout')) @section('title', ($bundle->meta_title) ? $bundle->meta_title : app_name() ) @section('meta_description', $bundle->meta_description) @section('meta_keywords', $bundle->meta_keywords) @push('after-styles') @endpush @section('content')
@if(session()->has('success'))
{{session('success')}}
@endif
@if($bundle->course_image != "") @endif

{{$bundle->title}} @if($bundle->trending == 1) @lang('labels.frontend.badges.trending') @endif

{!! $bundle->description !!}

@if(count($bundle->courses) > 0)
@foreach($bundle->courses as $course) @if($course->mediaVideo && $course->mediavideo->count() > 0)
@if($course->mediavideo != null)

{{$course->title}}

@if($course->mediavideo->type == 'youtube')
@elseif($course->mediavideo->type == 'vimeo')
@elseif($course->mediavideo->type == 'upload') @elseif($course->mediavideo->type == 'embed') {!! $course->mediavideo->url !!} @endif
@endif
@endif @endforeach
@endif
@if(count($bundle->courses) > 0)
@lang('labels.frontend.course.courses')
@endif
@foreach($bundle->courses as $course)
course_image != "") style="background-image: url('{{asset('storage/uploads/'.$course->course_image)}}')" @endif> @if($course->trending == 1)
@lang('labels.frontend.badges.trending')
@endif @if($course->free == 1)
@lang('labels.backend.courses.fields.free')
@endif
    @for($i=1; $i<=(int)$course->rating; $i++)
  • @endfor
@endforeach

@lang('labels.frontend.course.bundle_reviews')

@lang('labels.frontend.course.average_rating') {{$bundle_rating}}
    @for($r=1; $r<=$bundle_rating; $r++)
  • @endfor
{{$total_ratings}} @lang('labels.frontend.course.ratings')
@lang('labels.frontend.course.details') @for($r=5; $r>=1; $r--)
{{$r}} @lang('labels.frontend.course.stars') {{$bundle->reviews()->where('rating','=',$r)->get()->count()}}
@endfor
@if(count($bundle->reviews) > 0)
    @foreach($bundle->reviews as $item)
  • @lang('labels.frontend.course.by'): {{$item->user->full_name}}
      @for($i=1; $i<=(int)$item->rating; $i++)
    • @endfor
    @if(auth()->check() && ($item->user_id == auth()->user()->id)) @endif
    {{$item->created_at->diffforhumans()}}

    {{$item->content}}

  • @endforeach
@else

@lang('labels.frontend.course.no_reviews_yet')

@endif @if ($purchased_bundle) @if(isset($review) || ($is_reviewed == false))

@lang('labels.frontend.course.add_reviews')

@lang('labels.frontend.course.your_rating'):
@php if(isset($review)){ $route = route('bundles.review.update',['id'=>$review->id]); }else{ $route = route('bundles.review',['course'=>$bundle->id]); } @endphp
@csrf {{ $errors->first('review', ':message') }}
@endif @endif
@endsection @push('after-scripts') @endpush