@extends('back/layouts.app') @section('content') @include('components.admin.page-header',[ 'title' => __('actions.edit') .' '. __('domain.track'), 'routes' => [ ['header_route' => route('dashboard.courses.getAll',$site_id), 'header_name' => __('domain.courses')], ['header_name' => __('domain.tracks')] ] ])
@include('components.admin.datatable.page-alert')
@csrf
@foreach($lessons as $lesson) @php $lesson_sort = \App\Models\CourseTrack::where('course_id',$course->id)->where('courseable_type','lessons')->where('courseable_id',$lesson->id)->first();@endphp
ترتيب درس : {{ $lesson->translation->where('locale',app()->getLocale())->first()->title . $lesson->title_genaral}}
@endforeach
@foreach($tests as $test) @php $test_sort = \App\Models\CourseTrack::where('course_id',$course->id)->where('courseable_type','tests')->where('courseable_id',$test->id)->first(); @endphp
ترتيب اختبار: {{$test->translation->where('locale',app()->getLocale())->first()->title . $lesson->name}}
{{-- --}}
@endforeach
@endsection