@extends('teacher.teacher_dashboard') @section('admin')
{{-- Validation Errors --}} @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if(session('error'))
{{ session('error') }}
@endif

Edit Syllabus Draft

@csrf
@error('session_id') {{ $message }} @enderror
@error('class_id') {{ $message }} @enderror
@error('subject_id') {{ $message }} @enderror
@error('full_marks') {{ $message }} @enderror
@php $marksContent = old('marks_distribution', $syllabus->marks_distribution); // Remove backslash escaping first $marksContent = stripslashes($marksContent); // Decode unicode escape sequences (u09ac format without backslash) if (strpos($marksContent, 'u0') !== false) { $marksContent = preg_replace_callback('/u([0-9a-fA-F]{4})/', function ($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); }, $marksContent); } @endphp @error('marks_distribution') {{ $message }} @enderror
@php $syllabusContent = old('detailed_syllabus', $syllabus->detailed_syllabus); // Remove backslash escaping first $syllabusContent = stripslashes($syllabusContent); // Decode unicode escape sequences (u09ac format without backslash) if (strpos($syllabusContent, 'u0') !== false) { $syllabusContent = preg_replace_callback('/u([0-9a-fA-F]{4})/', function ($match) { return mb_convert_encoding(pack('H*', $match[1]), 'UTF-8', 'UCS-2BE'); }, $syllabusContent); } @endphp @error('detailed_syllabus') {{ $message }} @enderror
Cancel
@endsection @section('customjs') @endsection