@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 @if(empty($exportar) || $exportar != 1) @endif @isset($productos) @foreach ($productos as $item) @if(empty($exportar) || $exportar != 1) @endif @endforeach @endisset
Código Nombre Inventario Equiv. Fracción Factor Marca Categoría Ubicación 1 Ubicación 2Toma
{{$item->codigo}} {{$item->nombre}} {{$item->inventario}} {{round($item->inventario * ($item->factor ?? 1))}} {{$item->factor ?? 1}} {{$item->nommarca ?? ''}} {{$item->nomcategoria ?? ''}} {{$item->ubicacion1 ?? ''}} {{$item->ubicacion2 ?? ''}}