@isset($exportar) @php header("Cache-Control: maxage=1"); header("Pragma: public"); header('Content-type: application/vnd.ms-excel'); header("Content-Disposition: attachment; filename=Movimientos_Diarios.xls"); header("Pragma: no-cache"); header("Expires: 0"); @endphp @endisset
@php $totalDebito=0; $totalCredito=0; $diferencia=0; @endphp @isset($Movimeintos) @foreach ($Movimeintos as $item) @php $difRow = round((float)$item->debito - (float)$item->credito, 2); if (abs($difRow) < 0.001) $difRow = 0; @endphp @php $totalDebito=$totalDebito+$item->debito; $totalCredito=$totalCredito+$item->credito; @endphp @endforeach @endisset @php $diferencia = round($totalDebito - $totalCredito, 2); if (abs($diferencia) < 0.001) $diferencia = 0; @endphp
Movimiento Numero Debito Credito Diferencia Bodega
{{$item->tipoMovimiento}} {{$item->numeroMoimiento}} {{ number_format((float)$item->debito, 2, '.', '') }} {{ number_format((float)$item->credito, 2, '.', '') }}{{ number_format($difRow, 2, '.', '') }} {{$item->bodegaIng}}
@if(isset($exportar)) @else



@endif