Add laporan gadai, tgb lelong, tgb biasa
This commit is contained in:
@@ -35,15 +35,18 @@ class SaringanGadaianController extends Controller
|
||||
|
||||
public function exportExcel(Request $request, $kodcaw)
|
||||
{
|
||||
$startDate = $request->startDate ?? now()->startOfMonth()->toDateString();
|
||||
$endDate = $request->endDate ?? now()->endOfMonth()->toDateString();
|
||||
|
||||
$fileName = "Saringan_Gadaian_{$kodcaw}_{$startDate}_to_{$endDate}.xlsx";
|
||||
|
||||
return Excel::download(new GadaianDetailExport($kodcaw, $startDate, $endDate), $fileName);
|
||||
return Excel::download(
|
||||
new GadaianDetailExport(
|
||||
$kodcaw,
|
||||
$request->startDate,
|
||||
$request->endDate
|
||||
),
|
||||
"Saringan_Gadaian_{$kodcaw}.xlsx"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user