@php $logoPath = public_path('storage/documents/'.$company->logo); $defaultLogoPath = public_path('portal/img/logo.png'); @endphp @if($company && $company->logo && file_exists($logoPath)) @else @endif

Tel: {{ $company->phone }}

Email: {{ $company->email }}

@php $chunks = $companyPrepaidVouchers->chunk(4); // 4 vouchers per row @endphp

{{ $company->name }} Vouchers

Service Plan: {{ $companyServicePlan->name }}

@foreach($chunks as $chunk) @foreach($chunk as $voucher) @endforeach {{-- Fill empty cells if not full row --}} @for($i = $chunk->count(); $i < 4; $i++) @endfor @endforeach
@if($voucher->status == 0 || $voucher->engaged_voucher == 1) {{ $voucher->voucher_code }} @else {{ $voucher->voucher_code }} @endif