@livewire('course-train-component',['course' => $course , 'component_name' => 'course-edit' , 'course_id' => $course->id])
@if ($model_type == "App\Models\User")

Especially for {{App\Models\User::find($model_id)->name}}

@elseif($model_type == "App\Models\Team")

Especially for {{App\Models\Team::find($model_id)->name}}

@else   @endif @can('Assign Special Item') @livewire('assign-special-item-component') @endcan

{{__('messages.Edit')}} (RS-{{$course->id}}) {{__('messages.Course')}} {{($course->course_level)?$course->course_level->product->name:"-"}}

@if (session()->has('message'))
{{ session('message') }}
@endif {{-- @if (session()->has('error'))
{{ session('error') }}
@endif --}} @if (session()->has('error')) @endif
@if($course->course_sessions()->where('status','completed')->first())
{{__('messages.hint:You cannot change the start and end date, number of course sessions, and course operation days, because this session has already started, and to amend, add or delete a lecture, you can do that through course sessions')}} {{__('messages.click here')}}
@endif
.lazy main_category_id @foreach(\App\Models\Category::where("active" ,1)->whereNull('category_id')->get() as $main_cat) @endforeach
.lazy category_id @foreach(\App\Models\Category::where("active" ,1)->where('category_id' , $main_category_id)->get() as $cat) @endforeach
.lazy product_id @foreach(\App\Models\Product::where('active',1)->where("product_type_id" ,1)->where("category_id" ,$category_id)->orderBy("name_en")->get() as $product) @endforeach
@if ($course_levels->count()>1)
*
edit_course_level_id .lazy @foreach($course_levels as $courseLevel) @endforeach
@endif
branch_id getClassRooms @foreach(\App\Models\Branch::all() as $branch) @endforeach
class_room_type getClassRooms
* 
edit_class_room_id getInitialCapacityCourse @foreach($class_rooms as $classRoom) @endforeach
@if($course->course_sessions()->where('status','completed')->first() == null)
* 
@endif
* 
{{-- @if($course->course_sessions()->where('status','completed')->first()) --}}
{{-- @endif --}}
* 
* 
* 
* 
* 
edit_instructor_id .lazy getInitialHourPrice @foreach($instructors as $instructor) @endforeach
{{--
edit_gender
--}}
* 
edit_course_type_id {{-- .lazy --}} @foreach(\App\Models\CourseType::all() as $type) @endforeach
@if (($edit_course_type_id >=3 && $edit_course_type_id <=5) || $online_account_id)
* 
online_account_id @foreach(\App\Models\ClassRoom::where("active" ,1)->where("branch_id" ,3)->get() as $online_classRoom) @endforeach
@endif
* 
edit_course_status_id .defer @if($course->course_status_id == 2) @foreach(\App\Models\CourseStatus::whereIn('id',[2,4,5,6,7])->get() as $status) @endforeach @elseif($course->course_status_id == 1 && $course->customers->count()>=1) @foreach(\App\Models\CourseStatus::whereIn('id',[1,2,3,4])->get() as $status) @endforeach @elseif($course->course_status_id == 1 && $course->customers->count()<1) @foreach(\App\Models\CourseStatus::whereIn('id',[1,3,4])->get() as $status) @endforeach @elseif($course->course_status_id == 5 || $course->course_status_id == 4) @foreach(\App\Models\CourseStatus::whereIn('id',[5,4,3,2,6,7])->get() as $status) @endforeach @elseif($course->course_status_id == 6 ) @foreach(\App\Models\CourseStatus::whereIn('id',[6,7])->get() as $status) @endforeach @elseif($course->course_status_id == 7 ) @foreach(\App\Models\CourseStatus::whereIn('id',[7])->get() as $status) @endforeach @endif {{-- @foreach(\App\Models\CourseStatus::all() as $status) @endforeach --}}
@if($course->course_sessions()->where('status','completed')->first() == null)
@endif
@if ($edit_course_type_id >=3 && $edit_course_type_id <=5)
meeting_link 3
@endif
edit_comment 3