Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/cms.ncriptech.com/resources/views/admin/section/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- Edit modal content --> <div id="editModal-{{ $row->id }}" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <form class="needs-validation" novalidate action="{{ route($route.'.update', $row->id) }}" method="post" enctype="multipart/form-data"> @csrf @method('PUT') <div class="modal-header"> <h5 class="modal-title" id="myModalLabel">{{ __('modal_edit') }} {{ $title }}</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <!-- Form Start --> <div class="form-group"> <label for="title" class="form-label">{{ __('field_title') }} <span>*</span></label> <input type="text" class="form-control" name="title" id="title" value="{{ $row->title }}" required> <div class="invalid-feedback"> {{ __('required_field') }} {{ __('field_title') }} </div> </div> <div class="form-group"> <label for="program">{{ __('field_assign') }} {{ __('field_program') }} <span>*</span></label> @php ${'items'.$row->id} = 0; @endphp @foreach($programs as $key => $program) <br/><br/> <span class="badge badge-pill badge-primary">{{ $key + 1 }}. {{ $program->title }}</span> <hr/><br/> @foreach($program->semesters->where('status', 1)->sortBy('title') as $semester) <input type="text" hidden name="programs[]" value="{{ $program->id }}"> <input type="text" hidden name="semesters[]" value="{{ $semester->id }}"> <div class="checkbox d-inline"> <input type="checkbox" name="items[]" id="semester-{{ $key }}-{{ $row->id }}-{{ $semester->id }}" value="{{ ${'items'.$row->id} = ${'items'.$row->id} + 1 }}" @foreach($row->semesterPrograms as $selected_program) @if($selected_program->semester_id == $semester->id && $selected_program->program_id == $program->id) checked @endif @endforeach > <label for="semester-{{ $key }}-{{ $row->id }}-{{ $semester->id }}" class="cr">{{ $semester->title }}</label> </div> @endforeach @endforeach <div class="invalid-feedback"> {{ __('required_field') }} {{ __('field_program') }} </div> </div> <div class="form-group"> <label for="status" class="form-label">{{ __('select_status') }}</label> <select class="form-control" name="status" id="status"> <option value="1" @if( $row->status == 1 ) selected @endif>{{ __('status_active') }}</option> <option value="0" @if( $row->status == 0 ) selected @endif>{{ __('status_inactive') }}</option> </select> </div> <!-- Form End --> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><i class="fas fa-times"></i> {{ __('btn_close') }}</button> <button type="submit" class="btn btn-success"><i class="fas fa-check"></i> {{ __('btn_update') }}</button> </div> </form> </div> </div> </div>