public function getDetailDesa($id)
 {
     $data['desa'] = Desa::find($id);
     $data['airtawar'] = AirTawar::where('desa', $id)->get();
     $data['rumputlaut'] = RumputLaut::where('desa', $id)->get();
     $data['tambak'] = Tambak::where('desa', $id)->get();
     $data['mangrovemilik'] = MangroveMilik::where('desa', $id)->get();
     $data['mangroverehabilitasi'] = MangroveRehabilitasi::where('desa', $id)->get();
     $data['terumbumilik'] = TerumbuMilik::where('desa', $id)->get();
     $data['terumburehabilitasi'] = TerumbuRehabilitasi::where('desa', $id)->get();
     return view('app.statistik.detail-desa', $data);
 }
 public function getExportPdf(Request $r)
 {
     $data['rumputlaut'] = RumputLaut::whereBetween('created_at', [$r->offset, $r->limit])->get();
     $data['kasi'] = Laporan::where('jabatan', 'Kasi Budidaya Laut. Payau dan Air Tawar')->get();
     $data['petugas'] = Laporan::where('jabatan', 'Petugas Statistik')->get();
     $data['tgl_awal'] = $r->offset;
     $data['tgl_akhir'] = $r->limit;
     $pdf = PDF::loadView('app.laporan-produksi.rumputlaut.export-pdf', $data);
     return $pdf->setPaper('legal')->setOrientation('landscape')->setWarnings(false)->download('Data rumputlaut.pdf');
 }