update design table laporan
This commit is contained in:
@@ -554,9 +554,9 @@ class ReportController extends Controller
|
||||
|
||||
Public function lelongtebus ($lelong_id, $kodcaw){
|
||||
|
||||
$total_berat = 0;
|
||||
$total_hargaasas = 0;
|
||||
$total_hargalelong = 0;
|
||||
$total_nmarhun = 0;
|
||||
$total_pinjaman = 0;
|
||||
$total_upah = 0;
|
||||
$arrayinfocaw = [];
|
||||
|
||||
|
||||
@@ -584,16 +584,15 @@ class ReportController extends Controller
|
||||
->get()->toArray();
|
||||
// dd($laporantebus);
|
||||
|
||||
// foreach( $brglelpembida as $index1=>$totalbrglelpembida){
|
||||
foreach( $laporantebus as $index1=>$totalbrglelpembida){
|
||||
|
||||
// $total_berat = $total_berat + $totalbrglelpembida['berat'];
|
||||
// $total_hargaasas = $total_hargaasas + $totalbrglelpembida['hargaasas'];
|
||||
// $total_hargalelong = $total_hargalelong + $totalbrglelpembida['hargabida'];
|
||||
|
||||
// }
|
||||
$total_nmarhun += $totalbrglelpembida['nilaimarhun'];
|
||||
$total_pinjaman += $totalbrglelpembida['pinjaman'];
|
||||
$total_upah += $totalbrglelpembida['upah'];
|
||||
}
|
||||
|
||||
|
||||
$pdf = PDF::loadView('pdf.pdflelongtebus',compact('lelong_id','info','laporantebus','total_berat','total_hargaasas','total_hargalelong','arrayinfocaw'))
|
||||
$pdf = PDF::loadView('pdf.pdflelongtebus',compact('lelong_id','info','laporantebus','total_nmarhun','total_pinjaman','total_upah','arrayinfocaw'))
|
||||
->setPaper('a4','potrait');
|
||||
|
||||
return $pdf->download('Laporan Barang Lelong Pembida.pdf');
|
||||
|
||||
Reference in New Issue
Block a user