Ejemplo n.º 1
0
 /**
  * Display the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function show($id)
 {
     //
     $venta = ventas::with('venta_detalle.productos_configurables', 'clientes', 'tiendas.company', 'user', 'ingreso_venta.formas_pago')->find($id);
     $factura = facturacion::with('despachos')->where('venta_id', $id)->orwhere('remision_id', $id)->first();
     //dd($despacho);
     //dd($cuenta);
     return view('app/ventas/ventas_show', compact('venta', 'factura'));
 }