@php $label = $label ?? 'Earnings'; $items = $items ?? []; $maxRows = $maxRows ?? count($items); @endphp @foreach($items as $item) @endforeach {{-- Fill empty rows to match max height --}} @for($i = count($items); $i < $maxRows; $i++) @endfor
{{ $label }}
Description Amount
@if($label === 'Earnings') {{ $item->pamEarnDef->short_description }} @elseif($label === 'Deductions') {{ $item->pamDeduDef->short_description }} @elseif($label === 'Contributions') {{ $item->pamContDef->short_description }} @endif {{ number_format($item->fixed_amount, 2, '.', ',') }}