<h2>{{ ucfirst($reportType) }} Stock Report</h2>
<table border="1" width="100%" style="border-collapse: collapse; text-align:center;">
    <thead>
        <tr>
            @foreach($columns as $label)
                <th>{{ $label }}</th>
            @endforeach
        </tr>
    </thead>
    <tbody>
        @forelse($records as $row)
            <tr>
                @foreach(array_keys($columns) as $col)
                    <td>{{ $row->$col ?? 0 }}</td>
                @endforeach
            </tr>
        @empty
            <tr>
                <td colspan="{{ count($columns) }}">No records found</td>
            </tr>
        @endforelse
    </tbody>
</table>

 <footer class="text-center py-3  bg-white" style="margin-top: 100px;" >
        Powered By Nilatech
    </footer>