m_warehouse::orderBy('created_at', 'desc')->get(), 'peti' => Peti::get(), 'active' => 'menu-Pettern_Lot_Peti' ]; return view('dashboard.Master_Data.Report.Pattern_lot_peti.index', $data); } public function show($id) { // dd('test'); $data = [ 'peti' => Peti::find($id), 'assetStatus' => asset_status::where('peti_id', $id)->get(), 'active' => 'menu-Pettern_Lot_Peti' ]; return view('dashboard.Master_Data.Report.Pattern_lot_peti.detail_peti', $data); } public function export() { // dd('test'); return Excel::download(new PetternLotPetiExport, 'PATTERN_LOT_PETI.xlsx'); } }