@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') {{$bundle->title}} @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 @lang('labels.frontend.course.bundle_detail') {{$course->title}} {{$course->category->name}} {{ $course->students()->count() }} @lang('labels.frontend.course.students') @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)) @lang('labels.general.edit') @lang('labels.general.delete') @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 @lang('labels.frontend.course.message') @if(isset($review)){{$review->content}} @endif {{ $errors->first('review', ':message') }} @lang('labels.frontend.course.add_review_now') @endif @endif @if (!$purchased_bundle) @if($bundle->free == 1) {{trans('labels.backend.courses.fields.free')}} @else @lang('labels.frontend.course.price') {{$appCurrency['symbol'].' '.$bundle->price}} @endif @if(auth()->check() && (auth()->user()->hasRole('student')) && (Cart::session(auth()->user()->id)->get( $bundle->id))) @lang('labels.frontend.course.added_to_cart') @elseif(!auth()->check()) @if($bundle->free == 1) @lang('labels.frontend.course.get_now') @else @lang('labels.frontend.course.buy_now') @lang('labels.frontend.course.add_to_cart') @endif @elseif(auth()->check() && (auth()->user()->hasRole('student'))) @if($bundle->free == 1) @csrf @lang('labels.frontend.course.get_now') @else @csrf @lang('labels.frontend.course.buy_now') @csrf @lang('labels.frontend.course.add_to_cart') @endif @else @lang('labels.frontend.course.buy_note') @endif @for($i=1; $i<=(int)$bundle->rating; $i++) @endfor {{ $bundle->students()->count() }} @lang('labels.frontend.course.enrolled') @endif @if($recent_news->count() > 0) @lang('labels.frontend.course.recent_news') @foreach($recent_news as $item) @if($item->image != "") @endif {{$item->created_at->format('d M Y')}} {{$item->title}} @endforeach @lang('labels.frontend.course.view_all_news') @endif @if($global_featured_course != "") @lang('labels.frontend.course.featured_course') course_image != "") style="background-image: url({{asset('storage/uploads/'.$global_featured_course->course_image)}})" @endif> @if($global_featured_course->trending == 1) @lang('labels.frontend.badges.trending') @endif @if($global_featured_course->free == 1) @lang('labels.backend.courses.fields.free') @endif {{$global_featured_course->title}} {{$global_featured_course->category->name}} {{ $global_featured_course->students()->count() }} @endif @endsection @push('after-scripts') @endpush
{!! $bundle->description !!}
{{$item->content}}
@for($i=1; $i<=(int)$item->rating; $i++)
@endfor
@if(auth()->check() && ($item->user_id == auth()->user()->id)){{$item->content}}