public function html($id)
 {
     $acuse = Acuse::data($id)->first();
     //$ean = \DNS1D::getBarcodeHTML($id, "EAN13",1.3,25);
     //$ean = \DNS1D::getBarcodeHTML("111111111111", "EAN13",1.3,20);
     $folios = DB::table('detalle_acuses')->join('sucursales', 'detalle_acuses.id_sucursal', '=', 'sucursales.id')->select('folio_surtido', 'tipo', 'sucursal', 'hospital', 'id_ruta', 'cajas', 'hieleras')->where('id_acuse', '=', $id)->get();
     $totalcajas = 0;
     $totalhieleras = 0;
     foreach ($folios as $folio) {
         $totalcajas += $folio->cajas;
         $totalhieleras += $folio->hieleras;
     }
     $totales = $totalhieleras + $totalcajas;
     return view('pdf.acuse', compact('acuse', 'folios', 'totalcajas', 'totalhieleras', 'totales'));
 }
 public function ruta()
 {
     $acuses = Acuse::ruta()->get();
     return view('vehiculos.ruta', compact('acuses'));
 }
 public function controldocumental()
 {
     $acusesruta = Acuse::all();
     return view('controldocumental', compact('acusesruta'));
 }
 public function recibirfolios($id)
 {
     $folios = Acuse::find($id)->folios;
     return view('acuses.recibirfolios', compact('folios'));
 }