public function verFactura($id)
 {
     $factura = $this->edit($id);
     $detalles = detalle_Compra::where('numero_factura', $id)->get();
     $view = View::make('pdf.facturas.index', compact('invoice', 'detalles'))->with('factura', $factura)->render();
     $pdf = App::make('dompdf.wrapper');
     $pdf->loadHTML($view);
     //return $pdf->download('usuarios.pdf');
     return $pdf->stream('invoice');
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($id)
 {
     $factura = Factura::findOrFail($id);
     $detalles = detalle_Compra::where('id_factura', $id)->paginate(8);
     return view('admin.factura.ver', compact('factura', 'detalles'));
 }