format('Y-m-d_H-i-s').'.xlsx' ); } /** * Export products to Excel */ public function products(): BinaryFileResponse { return Excel::download( new ProductExport, 'data_produk_botol_'.now()->format('Y-m-d_H-i-s').'.xlsx' ); } /** * Export formulas to Excel */ public function formulas(): BinaryFileResponse { return Excel::download( new FormulaExport, 'data_rumus_'.now()->format('Y-m-d_H-i-s').'.xlsx' ); } /** * Export categories to Excel */ public function categories(): BinaryFileResponse { return Excel::download( new CategoryExport, 'data_kategori_'.now()->format('Y-m-d_H-i-s').'.xlsx' ); } /** * Export brands to Excel */ public function brands(): BinaryFileResponse { return Excel::download( new BrandExport, 'data_merek_'.now()->format('Y-m-d_H-i-s').'.xlsx' ); } }