@extends('layouts.teacher') @section('title', isset($task) ? 'Edit Tugas' : 'Buat Tugas Baru') @section('header_title', isset($task) ? 'Edit Tugas' : 'Buat Tugas') @section('content')
{{-- BACK BUTTON --}} @if(isset($task) && isset($task->msc_id)) Kembali ke Daftar Tugas @elseif(isset($msc)) Kembali ke Daftar Tugas @else Kembali ke Modul @endif
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @if(isset($task)) @method('PATCH') @endif
{{-- MODULE & LESSON --}}
{{-- INFO MODUL & KELAS --}}

Modul

{{ $msc->module->title }}

Kelas

{{ $msc->class->name }}

{{-- HIDDEN FIELDS --}} {{-- LESSON DROPDOWN --}}
{{-- JUDUL --}}
{{-- DESKRIPSI --}}
{{-- LAMPIRAN SOAL --}}

Gunakan link Google Drive, YouTube, atau website lain

{{-- JADWAL TUGAS --}} {{-- JADWAL TUGAS --}}
{{-- WAKTU DIBUKA --}}

Tentukan kapan tugas mulai bisa dilihat siswa. Kosongkan jika langsung tersedia.

{{-- DEADLINE --}}

Batas terakhir siswa dapat mengumpulkan tugas. Setelah waktu ini, pengumpulan akan ditutup otomatis.

{{-- OPSI TAMBAHAN --}}
{{-- ALLOW REVISION --}}
allow_revision) || old('allow_revision', true) ? 'checked' : '' }} class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
{{-- IS ACTIVE (Hanya untuk EDIT) --}} @if(isset($task))
is_active) || old('is_active', true) ? 'checked' : '' }} class="rounded border-gray-300 text-indigo-600 focus:ring-indigo-500">
@endif
{{-- ACTION BUTTONS --}}
@if(isset($task) && isset($task->msc_id)) Batal @elseif(isset($msc)) Batal @endif
@endsection