<?php
require_once __DIR__ . '/../../app/includes/auth.php';
require_once __DIR__ . '/../../app/includes/product_helpers.php';
require_auth();
csv_download_headers('products-sample-template.csv');
$out = fopen('php://output', 'w');
fputcsv($out, PRODUCT_CSV_HEADER);
fputcsv($out, ['Solar Panel', '550W Mono Panel', 'High efficiency mono crystalline module', 'Jinko', 'JKM550', 'pcs', '14500', 'active']);
fputcsv($out, ['Inverter', '5kW Hybrid Inverter', 'Hybrid solar inverter', 'Deye', 'SUN-5K-SG04LP1', 'pcs', '125000', 'active']);
fputcsv($out, ['Battery', '100Ah 12V Battery', 'Deep cycle battery', 'Livguard', 'LG100', 'pcs', '14500', 'active']);
exit;
