@foreach( $ordenes as $orden ) @endforeach
DATE RECEPCION CONTRACT ITEM DESCRIPTION PICTURE CANTD SALDO ¥ CTN ¥ TOTAL LUGAR ... ... ...
{{ date('d-m-Y',strtotime($orden->created_at)) }} {{ $orden->id }} {{ $orden->contrato_numero }} {{ $orden->producto_referencia }} {{ strtoupper($orden->nombre) }} {{ number_format($orden->cantidad,0) }} {{ number_format($orden->cantidad-$orden->cantidad_dsp,0) }} ¥{{ number_format($orden->precio_caja,2) }} ¥{{ number_format(($orden->cantidad-$orden->cantidad_dsp)*$orden->precio_caja,2) }} {{ ($orden->lugar == 1)?'FABRICA':'BODEGA' }} @if($orden->cantidad_dsp > 0) @else @endif @if( \Auth::user()->role_id == 3 || \Auth::user()->role_id == 1 || \Auth::user()->role_id == 5) @if( $orden->lugar == 1) @else @endif @else ... @endif @if( \Auth::user()->role_id == 3 || \Auth::user()->role_id == 1 || \Auth::user()->role_id == 4 ) @else ... @endif
. . . . TOTALES {{number_format($tot_inv,0)}} ... ¥{{number_format($tot_exp,2)}} . . . .