public function getPublicationNormalPayment($id)
 {
     $id = $id;
     $title = "Pago publicación habitual";
     $precioLider = Precios::where('pub_type_id', '=', 1)->get();
     $pub = Publicaciones::find($id);
     $precioCat = Precios::where('pub_type_id', '=', 2)->get();
     $numCuentas = NumCuentas::all();
     return View::make('publications.paymentsNormal')->with('title', $title)->with('id', $id)->with('precLid', $precioLider)->with('precCat', $precioCat)->with('pub', $pub)->with('numCuentas', $numCuentas);
 }
Ejemplo n.º 2
0
 public function getPayments($id)
 {
     $numCuentas = NumCuentas::all();
     $bancos = Bancos::all();
     $title = 'Pago de publicación';
     $pub = Publicaciones::find($id);
     return View::make('publications.payments')->with('title', $title)->with('pub_id', $id)->with('numCuentas', $numCuentas)->with('bancos', $bancos)->with('pub', $pub);
 }
 public function postElimAccount()
 {
     $id = Input::get('id');
     if (is_null($id)) {
         return Response::json(array('type' => 'danger', 'msg' => 'Error al eliminar la cuenta'));
     }
     $acc = NumCuentas::find($id);
     if ($acc->delete()) {
         return Response::json(array('type' => 'success', 'msg' => 'Se ha eliminado la cuenta satisfactoriamente.'));
     }
 }