@extends('admin.layouts.app') @section('title') {{ __('create') }} @endsection @section('content') @if (userCan('test_preparation_course.update'))
@csrf @method('PUT')
@foreach ($course_detail as $detail) @endforeach
@foreach ($course_detail as $detail) @php $detail_description = json_decode($detail['description'], true); $des_serial = 1; $task_description = json_decode($detail['task_description'], true); $start_with = 1; if ($detail_description != null) { $start_with = $start_with + count($detail_description); } if ($task_description != null) { $start_with = $start_with + count($task_description); } @endphp
@csrf @method('PUT')
iteration == 1) style="display:block;" @endif @endif >
Class{{ $detail['day'] }} Work

@if ($detail_description === null) @else @foreach ($detail_description as $description) @if (@$description['type'] == 'Simple task') @elseif(@$description['type'] == 'Mock test task') @elseif(@$description['type'] == 'Link task') @endif @php $des_serial++; @endphp @endforeach @endif
Type Task Name Duration link Action

Add Row

Delete

Delete

Delete

Home Work

{{--
--}}
@if ($task_description === null) @else @foreach ($task_description as $description) @php $des_serial++; @endphp @endforeach @endif
Type Task Name Mock Test Mock Test Type Duration link Action

Add Row

@if (@$description['type'] == 'Mock test task') @endif @if (@$description['type'] == 'Mock test task') @endif

Delete

@endforeach @endif @endsection @section('script') @endsection @section('style') @endsection