@php $aux_income = ""; $tr_color = "table-secondary"; @endphp @foreach ($inventory as $row) @php $is_first = false; if($aux_income != $row->income_id) { $aux_income = $row->income_id; $is_first = true; if ($tr_color == "") { $tr_color = "table-secondary"; } else { $tr_color = ""; } } @endphp @endforeach
Entrada # Fecha NĂºmero_de_parte Piezas Um. Bultos Peso_neto Description
@if ($is_first) @endif
{{ explode(' ',$row->income->cdate)[0] }} {{ $row->part_number()->part_number }} {{ $row->ump }} {{ $row->bundles }} {{ $row->umb }} {{ $row->part_number()->unit_weight * $row->units }} {{ $row->desc_ing }}