// LeaveRequest model
import 'package:flutter/material.dart';

class LeaveRequest {
  final String id;
  final String leaveType;
  final bool isTimedLeave;
  final DateTime fromDate;
  final DateTime toDate;
  final TimeOfDay fromTime;
  final TimeOfDay toTime;
  final String reason;
  final DateTime requestDate;
  final String status; // "waiting", "approved", or "denied"

  LeaveRequest({
    required this.id,
    required this.leaveType,
    required this.isTimedLeave,
    required this.fromDate,
    required this.toDate,
    required this.fromTime,
    required this.toTime,
    required this.reason,
    required this.requestDate,
    this.status = "waiting", // Default status is "waiting"
  });
}

// AdvanceRequest model
