CERTIFICATE
@php if(isset($print)){ $logoPath = asset('storage/'.$company_details['logo']); }else{ $logoPath = public_path('storage/'.$company_details['logo']); } @endphp

Certificate of Membership

Bio-Medical Waste Management Services

Certificate No: {{ $client->client_code }}
@php $controller = app()->make(App\Http\Controllers\ClientController::class); $verificationUrl = $controller->verify_certificate($client->id); @endphp Verification QR Code
Scan to verify
This is to certify that the following healthcare institution is an authorized member of our Bio-Medical Waste Management Services:
{{ $client->business_name }}
Client ID: {{ $client->client_code }}
📍 {{ $client->address }}, {{ $client->city }}, {{ $client->district->name }}
🏥 {{ $client->hcf_type }}
The above-mentioned institution is a registered member of {{ config('company.details.legal_name') }} and is authorized to receive Bio-Medical Waste Management Services as per the guidelines of the Central Pollution Control Board (CPCB) and State Pollution Control Board (SPCB).
@if(isset($client_services) && $client_services->isNotEmpty()) @foreach($client_services as $index => $service)
Service {{ $index + 1 }}
{{ $service->service->user_label ?? 'N/A' }}
Service Period
{{ $service->start_date ? date('d M Y', strtotime($service->start_date)) : 'N/A' }} to {{ isset($service->calculated_end_date) ? date('d M Y', strtotime($service->calculated_end_date)) : ($service->end_date ? date('d M Y', strtotime($service->end_date)) : 'Ongoing') }}
@if ($service->service_id == 1 || $service->service_id == 4)
Bed Strength
{{ $service->beds_count ?? 0 }}
@elseif($service->service_id == 2)
Service Type
{{ $service->non_bedded_type ?? 'N/A' }}
@endif @endforeach @if(isset($certificate_start_date) || isset($certificate_end_date))
Overall Certificate Validity
{{ $certificate_start_date ? date('d M Y', strtotime($certificate_start_date)) : 'N/A' }} to {{ $certificate_end_date ? date('d M Y', strtotime($certificate_end_date)) : 'Ongoing' }}
@endif @elseif(isset($client_service))
Service
{{ $client_service->service->user_label ?? 'N/A' }}
Service Period
{{ isset($service_start_date) ? date('d M Y', strtotime($service_start_date)) : ($client_service->start_date ? date('d M Y', strtotime($client_service->start_date)) : 'N/A') }} to {{ isset($service_end_date) ? date('d M Y', strtotime($service_end_date)) : ($client_service->end_date ? date('d M Y', strtotime($client_service->end_date)) : 'Ongoing') }}
@if ($client_service->service_id == 1 || $client_service->service_id == 4)
Total Bed Strength
{{ $client_service->beds_count ?? 0 }}
@elseif($client_service->service_id == 2)
Service Type
{{ $client_service->non_bedded_type ?? 'N/A' }}
@endif @if(isset($is_service_active) && !$is_service_active)
Status
@if(isset($is_service_expired) && $is_service_expired) EXPIRED @else INACTIVE @endif
@endif @else
Status
No active services found for this client.
@endif
@if (!empty($company_details['auth_sign'])) @php if(isset($print)){ $signPath = asset('storage/'.$company_details['auth_sign']); }else{ $signPath = public_path('storage/'.$company_details['auth_sign']); } @endphp Signature @endif
Authorized Signatory
{{ config('company.details.legal_name') }}

Printed by: {{ Auth::user()->name }} (ID: {{ Auth::user()->id }})

Printed on: {{ date('d-m-Y') }} at {{ date('H:i:s') }}