<?php
// Set headers to download the file
header("Content-Type: text/csv");
header("Content-Disposition: attachment; filename=sample_data.csv");
header("Pragma: no-cache");
header("Expires: 0");

$output = fopen("php://output", "w");

// Write CSV header
fputcsv($output, ['Customer Code', 'Customer Name', 'Customer Phone', 'Customer Address', 'Customer City', 'Customer State', 'Customer Zip', 'Destination City']);

// Sample data rows
// fputcsv($output, ['CUST123', 'John Doe', '9876543210', '123 Street, Bangalore', 'Bangalore', 'Karnataka', '560001', 'Mumbai']);
// fputcsv($output, ['CUST124', 'Jane Smith', '8765432109', '456 Avenue, Mumbai', 'Mumbai', 'Maharashtra', '400001', 'Delhi']);

fclose($output);
exit;
?>
