@extends('layout.layout') @section('content')
Create New Script
{{-- CRITICAL: Added enctype for file uploads --}}
@csrf
{{-- Title & Category Name (Side-by-side) --}}
@error('title')
{{ $message }}
@enderror
@error('category_name')
{{ $message }}
@enderror
{{-- Description (Full Width) --}}
@error('description')
{{ $message }}
@enderror
{{-- Visibility, Department, and Keywords (Grid) --}}
@error('visibility')
{{ $message }}
@enderror
@error('department_id')
{{ $message }}
@enderror
@if($staff && $staff->jobTitle && $staff->jobTitle->slug == "marketing_manager")
@error('status')
{{ $message }}
@enderror
@endif
@error('keywords')
{{ $message }}
@enderror

{{-- ATTACHMENTS FIELD --}}
Max 5 files. Allowed types: PDF, DOCX, JPG, PNG.
@error('attachments')
{{ $message }}
@enderror {{-- Note: If you want specific error messages per file, you would use a loop in the controller and display errors for attachments.* --}}
@endsection