<style>
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}
</style>
<table>
    <tr>
        @php $brojac = 0; @endphp
        @foreach($stavke as $stavka)
        <td>
            <img
                src="data:image/svg;base64, {!! base64_encode(QrCode::format('svg')->size(100)->generate($stavka->qrcode)) !!} ">
        </td>
        @php $brojac++; @endphp
        @if($brojac == 6)
    </tr>
    <tr>
        @php $brojac = 0; @endphp
        @endif
        @endforeach
    </tr>
</table>