@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')) @endif @if($errors->any()) @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
@csrf
@error('excel_file') {{ $message }} @enderror Only .csv files are allowed. Maximum size: 10MB
Cancel

Sample CSV Format:
Course Type Training Course Batch Type Duration From Date To Date Holidays Standard Price Promotional Offer Note
ISO 9001 Quality Management System Weekend 3 Days 15/01/2024 17/01/2024 16/01/2024 ₹15,000.00 ₹12,000.00 Early bird discount available
ISO 14001 Environmental Management Weekday 2 Days 20/01/2024 21/01/2024 ₹12,000.00
Download Sample CSV:
Download Sample CSV
@endsection