{{-- @dd(asset('public/').'uploads/'.$course->course_image) --}}

تفاصيل الدورة

أهداف الدورة
المجموعات
الفئة المستهدفة
محاور الدورة
المدربون
محتويات الدورة
بوايات الدفع
@php $lessonOfFirstLocationNum = 0; if (count($course->locations) > 0) { $last = $course->locations[0]; $lessonOfFirstLocationNum=DB::table('lesson_course_location')->where('course_location_id',$last->pivot->id)->where('model_type','App\Models\Lesson')->whereIn('model_id',$course->courseTimeline->pluck('model_id')->toArray())->count(); // foreach ($course->courseTimeline as $item) { // if ($item->model_type == 'App\Models\Lesson') { // $lessonOfFirstLocation = $item->model // ? $item->model // ->whereHas('courseLocations', function ($qq) use ($last) { // $qq->where('lesson_course_location.course_location_id', $last->pivot->id)->where('lesson_course_location.model_type', 'App\Models\Lesson'); // }) // ->get() // ->pluck('id') // ->toArray() // : []; // $lessonOfFirstLocationNum = count($lessonOfFirstLocation); // break; // } // } } @endphp
@if (session('locale') == 'ar') {{ $course->category->name_ar }} @else {{ $course->category->name }} @endif

@if (session('locale') == 'ar') {{ $course->title_ar }} @else {{ $course->title }} @endif

@if (session('locale') == 'ar') {{ sub($course->description_ar, 0, 120) }} @else {{ sub($course->description, 0, 120) }} @endif

@lang('labels.general.more')
{{-- {{ $course->lessons()->count() }} @lang('labels.frontend.layouts.home.lectures') --}} {{ $lessonOfFirstLocationNum }} @lang('labels.frontend.layouts.home.lectures')
{{ $course->minPricelocation() }} @if ($course->minPricelocationCurr() == 'SAR') {{ $course->minPricelocationCurr() }} @else $ @endif