whereDoesntStartWith('wire:model') ->class([ 'table', 'table-zebra' => $striped, '[&_tr:nth-child(4n+3)]:bg-base-200' => $striped && $expandable, 'cursor-pointer' => $attributes->hasAny(['@row-click', 'link']) ]) }} > {{-- PRIMERA FILA --}} @foreach($headers as $header) @continue($esSegundaFila($header)) {{-- Saltar los headers de la segunda fila --}} @php $colspan = $header['colspan'] ?? null; $rowspan = $header['rowspan'] ?? null; # SKIP THE HIDDEN COLUMN # Scoped slot`s name like `user.city` are compiled to `user___city` through `@scope / @endscope`. # So we use current `$header` key to find that slot on context. $temp_key = str_replace('.', '___', $header['key']) @endphp @endforeach {{-- SEGUNDA FILA --}} @foreach($headers as $header) @continue(!$esSegundaFila($header)) {{-- Solo los que sí son segunda fila --}} @endforeach @foreach($rows as $k => $row) !$noHover]) @if($attributes->has('@row-click')) @click="$dispatch('row-click', {{ json_encode($row) }});" @endif > @foreach($headers as $header) @php # SKIP THE HIDDEN COLUMN if($isHidden($header)) continue; # Scoped slot`s name like `user.city` are compiled to `user___city` through `@scope / @endscope`. # So we use current `$header` key to find that slot on context. $temp_key = str_replace('.', '___', $header['key']) @endphp @if(isset(${"cell_".$temp_key})) @else @endif @endforeach @if($actions) @endif @if($expandable) @endif @endforeach @if(count($rows) !== 0) @endif
{{ isset(${"header_".$temp_key}) ? ${"header_".$temp_key}($header) : $header['label'] }} @if($isSortable($header) && $isSortedBy($header)) @endif
{{ isset(${"header_".$temp_key}) ? ${"header_".$temp_key}($header) : $header['label'] }} @if($isSortable($header) && $isSortedBy($header)) @endif
@if($hasLink($header)) @endif {{ ${"cell_".$temp_key}($row) }} @if($hasLink($header)) @endif @if($hasLink($header)) @endif {{ $format($row, data_get($row, $header['key']), $header) }} @if($hasLink($header)) @endif {{ $actions($row) }}
{{ $expansion($row) }}
Stock: @if($stock) {{ $stock }} @endif @if($costo) {{ $costo }} @endif SALDO VALORADO: @if($saldo) {{ $saldo }} @endif
@if(count($rows) === 0) @if($showEmptyText)
{{ $emptyText }}
@endif @if($empty)
{{ $empty }}
@endif @endif
@if($withPagination) @if($perPage) @else @endif @endif