laporan ubah marhun pdf (pc)

This commit is contained in:
Amirah22
2023-01-25 13:48:44 +08:00
parent 62fe2e1d77
commit 2062db8c42
3 changed files with 45 additions and 1 deletions
@@ -903,9 +903,46 @@ class ReportCawanganController extends Controller
return $pdf->download('Laporan Tuntut/Belum Baki Lelong.pdf');
}
public function indexubahmarhun (){
$arraydetails = [];
$user = Auth::user();
$caw = Cawangan::where('caw_code','=',$user->kodcaw)
->first();
// dd($caw);
$laporan= Lelong::join('cawangan_lelong','lelong.id','=','cawangan_lelong.lelong_id')
->join('pengesahan','lelong.id','=','pengesahan.lelong_id')
->join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('cawangan.caw_code','=',$user['kodcaw'])
->select('cawangan_lelong.lelong_id','tarikh_lelong','lelong.fasa')
->distinct()
->orderBy('cawangan_lelong.lelong_id')
->get()
->toArray();
// dd($laporan);
foreach($laporan as $brg)
{
$details = CawanganLelong::join('cawangan','cawangan_lelong.caw_id','=','cawangan.id')
->where('lelong_id', $brg['lelong_id'])
->where('cawangan.caw_code','=',$user['kodcaw'])
->distinct()
->orderBy('lelong_id')
->get()
->toArray();
array_push($arraydetails,['brg' => $brg, 'detailsbrg' => $details ]);
}
return view('marhun.ubahmarhuncaw', compact('arraydetails'));
}
@@ -176,6 +176,11 @@
<a href="{{url('reportcaw/indexbrglelpembidacaw')}}">Barang Lelong Pembida</a>
</li>
</ul>
<ul class="list-unstyled collapse {{ (request()->is('reportcaw/*')) ? 'show' : '' }}" id="reportSubmenu">
<li class="{{ (request()->is('reportcaw/indexubahmarhun/*') || request()->is('reportcaw/indexubahmarhun') ) ? 'active' : '' }}">
<a href="{{url('reportcaw/indexubahmarhun')}}">Perubahan Marhun</a>
</li>
</ul>
</li>
+2
View File
@@ -585,6 +585,8 @@ Route::get('laporanlelfullcaw/{lelong_id}',['as'=>'reportcaw.laporanlelfullcaw',
Route::get('indexbrglelpembidacaw',['as'=>'reportcaw.indexbrglelpembidacaw','uses'=>'ReportCawanganController@indexbrglelpembidacaw']);
Route::get('laporanbrglelpembidacaw/{lelong_id}',['as'=>'reportcaw.laporanbrglelpembidacaw','uses'=>'ReportCawanganController@laporanbrglelpembidacaw']);
Route::get('indexubahmarhun',['as'=>'reportcaw.indexubahmarhun','uses'=>'ReportCawanganController@indexubahmarhun']);
});
//Report by cawangan KHAS