@extends('backend.master') @section('mainContent') {!! generateBreadcrumb() !!} {{__('quiz.Instructor')}} {{__('quiz.Student')}} @if(isModuleActive('HumanResource')) @if ($roles->where('id',4)->first() != null) {{__('attendance.Staff')}} @endif @endif @csrf {{ __('common.SL') }} {{ __('common.Name') }} {{__('common.Status')}} @php $alreadyHave=[]; $i=1; @endphp @foreach($instructor_temps as $temp) @php if (!in_array($temp->template_act,$alreadyHave)){ $alreadyHave[] =$temp->template_act; }else{ continue; } if($temp['template']->is_system==1 || empty($temp['template']->name)){ continue; } @endphp {{translatedNumber($i)}} {{$temp['template']->subj}} status==1? 'checked':''}} value="1"> @php $i++; @endphp @endforeach {{__('common.Update')}} @csrf {{ __('common.SL') }} {{ __('common.Name') }} {{__('common.Status')}} @php $alreadyHave=[]; $j=1; @endphp @foreach($students_temps as $temp) @php if (!in_array($temp->template_act,$alreadyHave)){ $alreadyHave[] =$temp->template_act; }else{ continue; } if($temp['template']->is_system==1 || empty($temp['template']->name)){ continue; } @endphp {{translatedNumber($j)}} {{$temp['template']->subj}} status==1? 'checked':''}} value="1"> @php $j++; @endphp @endforeach {{__('common.Update')}} @if(isModuleActive('HumanResource')) @csrf {{ __('common.SL') }} {{ __('common.Name') }} {{__('common.Status')}} @php $k=1; @endphp @foreach($staffs_temps as $temp) @php if($temp['template']->is_system==1){ continue; } if($temp['template']->name==''){ continue; } @endphp {{translatedNumber($k)}} {{$temp['template']->subj}} status==1? 'checked':''}} value="1"> @php $k++; @endphp @endforeach {{__('common.Update')}} @endif @endsection @push('scripts') @endpush