update baki lelong all

This commit is contained in:
Nur Izzati
2025-06-12 16:47:16 +08:00
parent da34bb1658
commit b8a6a1bbd0
2 changed files with 155 additions and 3 deletions
@@ -10,7 +10,7 @@ use Illuminate\Support\Facades\Http;
use App\Exports\BakiLelongBelumTuntutExport;
use Maatwebsite\Excel\Facades\Excel;
use Illuminate\Support\Facades\Auth;
use App\Exports\LaporanKeseluruhan\BakiLelongAllExportExcel;
use App\Exports\LaporanKeseluruhan\BakiLelongBelumTuntutAllExportExcel;
class BakiLelongController extends Controller
{
@@ -77,8 +77,8 @@ class BakiLelongController extends Controller
// Ensure $kod_cawangan is defined (Modify as per your data structure)
$kod_cawangan = $request->input('kod_cawangan', 'DEFAULT');
$file_title = sprintf("LaporanBakiLelongan %s (%s - %s).xlsx", $kod_cawangan, $startDate, $endDate);
return Excel::download(new BakiLelonganAllExportExcel($lelongan), $file_title);
$file_title = sprintf("LaporanBakiLelongBelumTuntut %s (%s - %s).xlsx", $kod_cawangan, $startDate, $endDate);
return Excel::download(new BakiLelongBelumTuntutAllExportExcel($lelongan), $file_title);
}
return view('reports.bakilelongbelumtuntut.index', compact('lelongan', 'startDate', 'endDate'));
}