@extends('layouts.admin') @push('title', get_phrase('Edit course')) @section('content')

{{ get_phrase('Editing') }} {{ $course_details->title }}

{{ get_phrase('Back') }} {{ get_phrase('Help') }}
@csrf
{{ get_phrase('Frontend View') }} @php $watch_history = App\Models\Watch_history::where('course_id', $course_details->course_id) ->where('student_id', auth()->user()->id) ->first(); $lesson = App\Models\Lesson::where('course_id', $course_details->course_id) ->orderBy('sort', 'asc') ->first(); if (!$watch_history && $lesson) { $url['slug'] = $course_details->slug; $lesson_id = ''; } else { if ($watch_history) { $lesson_id = $watch_history->watching_lesson_id; } elseif ($lesson) { $lesson_id = $lesson->id; }else{ $lesson_id = ''; } $url['id'] = $lesson_id; } @endphp {{ get_phrase('Course Player') }}
@includeWhen($tab == 'curriculum' || $tab == '', 'admin.course.curriculum') @includeWhen($tab == 'basic', 'admin.course.edit_basic') @includeWhen($tab == 'live-class', 'admin.course.live_class') @includeWhen($tab == 'pricing', 'admin.course.edit_pricing') @includeWhen($tab == 'info', 'admin.course.edit_info') @includeWhen($tab == 'media', 'admin.course.edit_media') @includeWhen($tab == 'seo', 'admin.course.edit_seo')
@endsection