@include('pdf.style')
{{ __('This is to certify that') }}
{{ $application->company->company_name }} ({{ $application->company->registration_no }} {{ $application->company->old_registration_no }})
{{ __('has the rights to use the MyHIJAU Mark on the following item:') }}
{{ __('(Refer to Schedule Page for more details)') }}
@if ($qrcode ?? null)
@endif

Certificate no.: {{ $application->certificate_no }}
Issue Date: {{ \Carbon\Carbon::parse($application->approved_at ?? $application->myhijau_cert_date)->format('d-m-Y') }}
Valid Until: {{ \Carbon\Carbon::parse($application->myhijau_exp_date)->format('d-m-Y') }}

SCHEDULE PAGE

@if ($application->type == App\Models\Application::TYPE_PRODUCT) @foreach ($application->items as $product) @php $models = ['Model', 'Product code/ Model']; $model = $product->getItemDetailValue($models) ?? '-'; @endphp @endforeach @else @foreach ($application->items as $service) @endforeach @endif
Item # Item Name Brand Model
{{ $application->certificate_no . '-' . str_pad($loop->iteration, 3, '0', STR_PAD_LEFT) }} {{ $product->getItemDetailValue('Product Name') }} {{ $product->getItemDetailValue('Brand') }} {{ $model }}
Item # Item Name Description
{{ $application->certificate_no . '-' . str_pad($loop->iteration, 3, '0', STR_PAD_LEFT) }} {{ $service->getItemDetailValue('Service Name') }} {{ $service->getItemDetailValue('Service Description') }}

END PAGE