/** * Delete confirmation message */ public function deleteMsg($id) { $scaffold = Scaffoldinterface::FindOrFail($id); $msg = Ajaxis::Mtdeleting("Warning!!", "Would you like to rollback '" . $scaffold->tablename . "' ?? by rollbacking this, make sure that you have rollbacked " . $scaffold->tablename . " from database. and avoid to keep routes recoureces.", '/scaffold/guirollback/' . $id); if (Request::ajax()) { return $msg; } }
/** * Delete confirmation message */ public function deleteMsg($id) { $scaffold = Scaffoldinterface::FindOrFail($id); $msg = Ajaxis::Mtdeleting('Warning!!', 'Are you sure you want to Rollback ' . $scaffold->tablename . ' by rollbacking "' . $scaffold->tablename . '" . be sure that you rollback ' . $scaffold->tablename . ' from database. and avoid to keep routes recoureces', '/scaffold/guirollback/' . $id); if (Request::ajax()) { return $msg; } }
/** * Deleting confirmation message * * @param int $id * @return \Amranidev\Ajaxis\Ajaxis */ public function delete($id) { $api = '/ContactMt/' . $id . '/destroy'; $Ajaxis = Ajaxis::MtDeleting('Delete', 'Are you sure to delete this contact ?', $api); if (Request::ajax()) { return $Ajaxis; } }
/** * Delete confirmation message by Ajaxis * * @link https://github.com/amranidev/ajaxis * * @return String */ public function DeleteMsg($id) { $msg = Ajaxis::MtDeleting('Warning!!', 'Would you like to remove This?', '/permiso/' . $id . '/delete/'); if (Request::ajax()) { return $msg; } }
public function delete($id) { $api = '/tasks/' . $id . '/destroy'; $Ajaxis = Ajaxis::MtDeleting('Delete', 'Seguro de borrar esta tarea ?', $api); if (Request::ajax()) { return $Ajaxis; } }
/** * ManyToMany form. * * @param \Illuminate\Http\Request * * @return \Illuminate\Http\Response */ public function manyToManyForm(Request $request) { $dummyData = DatabaseManager::tableNames(); $elements = Ajaxis::MtcreateFormModal([['type' => 'select', 'name' => 'table1', 'key' => 'table1', 'value' => $dummyData], ['type' => 'select', 'name' => 'table2', 'key' => 'table2', 'value' => $dummyData]], '/scaffold/manyToMany', 'Many To Many'); return $elements; }
/** * Delete confirmation message by Ajaxis. * * @link https://github.com/amranidev/ajaxis * @param \Illuminate\Http\Request $request * @return String */ public function DeleteMsg($id, Request $request) { $msg = Ajaxis::BtDeleting('Warning!!', 'Would you like to remove This?', '/test/' . $id . '/delete/'); if ($request->ajax()) { return $msg; } }