@extends('layouts.admin')
@section('title', 'Upload Training Calendar')
@section('content_header')
Upload Training Calendar
@stop
@section('content')
Upload Training Calendar Excel Sheet
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
CSV File Requirements:
File format: .csv only
Maximum file size: 10MB
First row should contain headers (will be skipped)
Required columns: Course Type, Training Course
Optional columns: Batch Type, Duration, From Date, To Date, Holidays, Standard Price, Promotional Offer, Note
Holidays Format: Multiple dates separated by commas (e.g., "03/09/2025,11/09/2025,12/09/2025")
Date Validation: From Date cannot be after To Date
Duplicate Handling: If a record with the same Course Type + Training Course + From Date + To Date exists, it will be updated instead of creating a duplicate
Upload Strategy: Upload the same file again to update existing records with new information
Database Protection: Unique constraint prevents duplicate entries at database level
Important Notes:
Duplicate entries will be automatically updated, not created
Upload the same file multiple times to update existing records
Check upload logs for detailed processing information