예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $operacion = Operacion::FindOrFail($id);
     $cliente = Cliente::lists('razonsocial', 'id');
     return view('operaciones.opedit', compact('operacion', 'cliente'));
 }
예제 #2
0
 public function venta($id)
 {
     $chequeven = Cheque::findOrFail($id);
     $clientes = Cliente::lists('razonsocial', 'id');
     return view("cheques.venta", compact("chequeven", "clientes"));
 }
예제 #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     Cliente::destroy($id);
     \Session::flash('message', 'Cliente Borrado!');
     return redirect('clientes');
 }