public function run() { DB::table('ppl_koperasi_ajuans')->delete(); Ajuan::create(array('id' => NULL, 'id_staff' => NULL, 'nama_koperasi' => 'Koperasi Jaya Makmur', 'jenis_ajuan' => 'Pembentukan', 'jenis_koperasi' => 'Konsumsi', 'status' => 'Sedang Diproses', 'id_pengaju' => '123238212', 'email' => '*****@*****.**', 'file' => 'jayamakmur.zip')); Ajuan::create(array('id' => NULL, 'id_staff' => NULL, 'nama_koperasi' => 'Koperasi Mantap Bergaya', 'jenis_ajuan' => 'Pembentukan', 'jenis_koperasi' => 'Simpan Pinjam', 'status' => 'Sedang Diproses', 'id_pengaju' => '232312333', 'email' => '*****@*****.**', 'file' => 'mantapbergaya.zip')); Ajuan::create(array('id' => NULL, 'id_staff' => NULL, 'nama_koperasi' => 'Koperasi Sumber Jaya', 'jenis_ajuan' => 'Pembubaran', 'jenis_koperasi' => 'Simpan Pinjam', 'status' => 'Sedang Diproses', 'id_pengaju' => '123238212', 'email' => '*****@*****.**', 'file' => 'adilseksama.zip')); }
public function deleteAjuan($id) { $ajuan = Ajuan::find($id); $ajuan->delete(); return redirect()->back()->with('message', 'Ajuan berhasil dihapus'); }
public static function getAjuanSimpanPinjam() { $ajuan = Ajuan::bentuk()->simpanPinjam()->get(); return $ajuan; }