downloadAs('asset_report.xlsx'); // This will download the file to your local system // $xlsx->saveAs('asset_report.xlsx'); // This will save the file to your server echo "
";
print_r($assets);