@if(isset($dados) && $dados->isNotEmpty())
@if(isset($tituloTabela))
{{ $tituloTabela }}
@endif @foreach($colunas as $coluna) @endforeach @foreach($dados as $item) @foreach($colunas as $key => $coluna) @endforeach @endforeach @if(isset($totaisLinha)) @foreach($colunas as $key => $coluna) @endforeach @endif
{{ $coluna['label'] }}
@if(isset($coluna['format'])) @switch($coluna['format']) @case('currency') R$ {{ number_format($item->{$key} ?? 0, 2, ',', '.') }} @break @case('date') {{ $item->{$key} ? \Carbon\Carbon::parse($item->{$key})->format('d/m/Y') : '-' }} @break @case('badge') @if(isset($coluna['badge_function'])) {!! call_user_func($coluna['badge_function'], $item) !!} @else {{ $item->{$key} ?? '-' }} @endif @break @default {{ $item->{$key} ?? '-' }} @endswitch @else {{ $item->{$key} ?? '-' }} @endif
@if(isset($totaisLinha[$key])) @if(isset($coluna['format']) && $coluna['format'] === 'currency') R$ {{ number_format($totaisLinha[$key], 2, ',', '.') }} @else {{ $totaisLinha[$key] }} @endif @endif
@else
@if(isset($tituloTabela))
{{ $tituloTabela }}
@endif

Nenhum registro encontrado

Não há dados para exibir com os filtros aplicados.

@endif