@extends('layouts.main_dashboard.app') @php($routePrefix = auth()->user()?->usesStaffPortal() ? 'teacher' : 'admin') @section('styles') @endsection @section('title', __('dashboard.Add New Assignment')) @section('page_heading', __('dashboard.Add New Assignment')) @section('breadcrumb') @endsection @section('actions') {{ __('dashboard.Back to Assignments') }} @endsection @section('content')
{{ __('dashboard.Add New Assignment') }}

{{ __('dashboard.Create a new assignment with clear settings') }}

{{ __('dashboard.Build the assignment once, attach optional files, and control due date, score, publication, and course lesson context from one page.') }}

{{ __('dashboard.Course') }}
{{ $course->name }}
{{ __('dashboard.Lessons') }} {{ $lessons->count() }}
{{ __('dashboard.Status') }} {{ __('dashboard.Draft or Published') }}
@csrf
{{ __('dashboard.Assignment Details') }} {{ __('dashboard.Define the lesson context, title, and assignment instructions.') }}
@error('lesson_id')
{{ $message }}
@enderror
@error('title')
{{ $message }}
@enderror
{{ __('dashboard.Files') }} {{ __('dashboard.Attach supporting files if this assignment requires worksheets, references, or templates.') }}

{{ __('dashboard.Drop files here or click to upload.') }}

{{ __('dashboard.Upload up to 10 files') }}
{{ __('dashboard.Maximum file size: 8MB') }}
@error('files.*')
{{ $message }}
@enderror
{{ __('dashboard.Settings') }} {{ __('dashboard.Control due date, score, weight, and publishing options.') }}
@error('due_date')
{{ $message }}
@enderror
{{ __('dashboard.Cancel') }}
@endsection @section('scripts') @endsection