@extends('layouts.instructor') @section('breadcrumb')

{{__('Upload Course')}}

@endsection @section('content')
  • {{ __('Course Overview') }}
  • {{ __('Upload Video') }}
  • {{ __('Instructors') }}
  • {{ __('Submit Process') }}
@csrf
@php $instructors_id = @$course->course_instructors->where('status', STATUS_APPROVED)->pluck('instructor_id')->toArray(); @endphp
@foreach ($instructors as $instructor) @php $oldData = @old('instructor_id')[$instructor->id]; $oldShare = @old('share')[$instructor->id]; $oldShare = ($oldShare) ? $oldShare : @$course->course_instructors->where('status', STATUS_APPROVED)->where('instructor_id', $instructor->id)->first()->share; @endphp @if($oldData == $instructor->id || in_array($instructor->id, $instructors_id)) @endif @endforeach
{{ __('Instructor Name') }} {{ __('Revenew share (in % between 0 to 100)') }}
{{__('Back')}}
@endsection @push('style') @endpush @push('script') @endpush