@php $allVouchers = $pages->flatten(1); $chunks = $allVouchers->chunk(12); @endphp @foreach($chunks as $chunkIndex => $pageVouchers) @foreach($pageVouchers->chunk(3) as $row) @foreach($row as $item) @endforeach @for($i = $row->count(); $i < 3; $i++)@endfor @endforeach
{{ $tenant->company_name ?? 'WiFi' }}
QR
CODE
{{ $item['voucher']->voucher_code }}
{{ $item['voucher']->plan->plan_name ?? 'Plan' }}
Speed: {{ $item['voucher']->plan->download_speed ?? '-' }}
Valid: {{ app(App\Services\VoucherPdfService::class)->getValidityText($item['voucher']) }}
@if(!$loop->last)
@endif @endforeach