/** * Get an excel table export. * * @return Response */ public function export() { $tipeakun = new TipeAkun(); $tipeakuns = $tipeakun->get($tipeakun->getFillable()); $tipeakuns = $tipeakuns->toArray(); if ($tipeakuns == []) { return view('tipeakun.export'); } return ExcelHelper::export($tipeakuns, 'tipeakuns'); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $currencies = MataUang::get(['simbol', 'nama'])->toArray(); $tipeakuns = TipeAkun::get(['id', 'nama'])->toArray(); return view('akun.create', compact('currencies', 'tipeakuns')); }