@extends('layouts.admin') @section('styles') @endsection @section('content') @php $status = (isset($data[0]['status']) && $data[0]['status'] == 1) ? "Active" : "Inactive"; $status_color = Config::get('constants.status_color.' . $status); $status_btn = \App\GlobalClass\Design::blade('status',$status,$status_color); @endphp

{{(isset($mode)?$mode:'') }} Batch {{((isset($data[0]['batch_name'])?' - '.$data[0]['batch_name']:''))}} [ {{(isset($data[0]['batch_code'])?$data[0]['batch_code']:'---')}} ]

Course Name : {{(isset($batch_course_name))?$batch_course_name:''}}

@if (per_hasModuleAccess('Batch', 'Edit')) @endif
@if(isset($batch_course_module_data) && !empty($batch_course_module_data)) @foreach ($batch_course_module_data as $modkey => $modvalue) @if($modkey == 0) @php $show = 'show'; $aria_expanded = 'true' @endphp @else @php $show = ''; $aria_expanded ='false'; @endphp @endif
@if(isset($batch_course_module_chater_data) && !empty($batch_course_module_chater_data)) @foreach ($batch_course_module_chater_data as $chkey => $chvalue) @if($chkey == 0) @php $cpshow = 'show'; $cparia_expanded = 'true'; @endphp @else @php $cpshow = ''; $cparia_expanded = 'false'; @endphp @endif @if(isset($modvalue['module_id']) && isset($chvalue['course_module_id'])) @if($modvalue['module_id'] == $chvalue['course_module_id'])
@if(isset($batch_topic_all_data) && !empty($batch_topic_all_data)) @foreach ($batch_topic_all_data as $chtpkey => $chtpvalue) @if(isset($chtpvalue['course_module_chapter_id']) && isset($chvalue['chapter_id'])) @if($chtpvalue['course_module_chapter_id'] == $chvalue['chapter_id']) @php $topic_id = isset($chtpvalue['topic_id'])?$chtpvalue['topic_id']:0; @endphp
@if(isset($chtpvalue['media_file']) && $chtpvalue['media_file'] !='' && $chtpvalue['is_default'] == 1)
@else @endif
{{(isset($chtpvalue['title']))?reduceTitleName($chtpvalue['title']):'---'}}

{!!(isset($chtpvalue['short_description']))?reduceshortdescription($chtpvalue['short_description']):'---'!!} @if(isset($batch_topic_media_video_data) && !empty($batch_topic_media_video_data)) Language : @foreach($batch_topic_media_video_data as $chtmepkey => $chtmevalue ) @if(isset($chtmevalue['topic_id']) && isset($topic_id)) @if($chtmevalue['topic_id'] == $topic_id) @if(array_key_exists($chtmevalue['lang_code'],$media_lang_arr)) @php $lang_name = ''; $lang_name = $media_lang_arr[$chtmevalue['lang_code']]; @endphp {{$lang_name}} @endif @endif @endif @endforeach @endif

@endif @endif @endforeach @else

No topic found for this chapter !

@endif
@endif @endif @endforeach @else

No chapter found for this module!

@endif
@endforeach @else @endif
@endsection @section('scripts') @endsection