Commit fbe9d4d1 by Triyah Fatmawati

Update Nama File

parent 459e9a17
......@@ -367,8 +367,10 @@ public function download_data_pembayaran()
'va' => $value,
'tglbayar' => $date
];
$nama_file = 'Data Pembayaran Konaspi '." ".date('Y-m-d');
}
return view('admin.pembayaran.excel', compact('data'));
return view('admin.pembayaran.excel', compact('data', 'nama_file'));
}
}
<?php
$nama_file = 'Data Pembayaran Konaspi';
header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=$nama_file.xls");
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment