@extends('dashboard.layouts.default') @section('content') @if ($errors->any())
@endif
Summary
{{ csrf_field() }}
@if(!$students) @forelse($classes as $key=>$class)
{{ $class->name }}
@empty @endforelse @else @forelse($students as $key=>$student)
{{ $student->name }}
@empty @endforelse @endif @foreach($units as $key=>$unit)
{{ $unit->name }} {{ (($check_videos != null) && (in_array($unit->id, $check_videos))) ? '' : '' }} {{ (($check_quizs != null) && (in_array($unit->id, $check_quizs))) ? '' : '' }}
@endforeach
Reset Task > Choose Questions
{{ csrf_field() }} @foreach($units as $unit)
{{$unit->name}} @php $videos = App\Models\Video::where('unit_id', $unit->id)->get(); $video = $videos->where('video_mode', 'free')->first(); $is_plan = \App\Helpers\Helper::checkSchoolPlan(); if ($is_plan) { $paid_video = $videos->where('video_mode', 'paid')->first(); if ($paid_video) { $video = $paid_video; } } @endphp @if($video) @endif
    @foreach($unit->questions as $question)
  • @php if(Session::has('question_ids')){ $selected_questions = Session::get('question_ids'); $checked = (in_array($question->id, $selected_questions)) ? 'checked' : ''; }else{ if($details->selected_questions){ $selected_questions = $details->selected_questions; $checked = (in_array($question->id, $selected_questions)) ? 'checked' : ''; }else{ $selected_questions = array(); $checked = "checked"; } } @endphp
  • @endforeach
@endforeach
@endsection @section('scripts') @endsection