update baki lelong all
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user