@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
@if ($errors->any()) @endif @if (session('error')) @endif

Import Holidays from JSON

Paste valid JSON data and import multiple holidays at once.

@csrf
@error('holidays_json')
{{ $message }}
@enderror
Date format must be YYYY-MM-DD for JSON import.
Back
Format Guide

Valid JSON Format:

[
  {
    "start_date": "2026-03-26",
    "end_date": "2026-03-28",
    "title": "Holiday Name",
    "applies_to": "all",
    "description": "Optional note"
  }
]

Allowed applies_to:

all students staff

Field Reference:

  • start_date Required
  • end_date Required
  • title Required
  • applies_to Required
  • description Optional
Quick Presets
Presets will replace the current textarea content.
@endsection @section('customjs') @endsection