@if($exportar==1) @php header("Cache-Control: maxage=1"); header("Pragma: public"); header('Content-type: application/vnd.ms-excel'); $hojaNombre = (isset($productos) && method_exists($productos, 'currentPage')) ? '_Hoja_' . $productos->currentPage() : (isset($page) ? '_Hoja_' . $page : ''); header("Content-Disposition: attachment; filename=Inventario_Aleatorios" . $hojaNombre . ".xls"); header("Pragma: no-cache"); header("Expires: 0"); @endphp @endif
| Código | Nombre | Inventario | Equiv. Fracción | Factor | Marca | Categoría | Ubicación 1 | Ubicación 2 | @if(empty($exportar) || $exportar != 1)Toma | @endif
|---|---|---|---|---|---|---|---|---|---|
| {{$item->codigo}} | {{$item->nombre}} | {{$item->inventario}} | {{round($item->inventario * ($item->factor ?? 1))}} | {{$item->factor ?? 1}} | {{$item->nommarca ?? ''}} | {{$item->nomcategoria ?? ''}} | {{$item->ubicacion1 ?? ''}} | {{$item->ubicacion2 ?? ''}} | @if(empty($exportar) || $exportar != 1)@endif |