@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

{{ $company->name }}

Tel: {{ $company->phone }}

Email: {{ $company->email }}


{{ $company->name }} {{ $servicePlan->name }} Customers {{ number_format(count($companyCustomerServicePlans)) }} customers found

@foreach($companyCustomerServicePlans as $companyCustomerServicePlan) @endforeach
# A/c No Customer Plan Expiry Date Amount
{{ $companyCustomerServicePlan->companyCustomer ? ($companyCustomerServicePlan->companyCustomer->phone ? $companyCustomerServicePlan->companyCustomer->phone : $companyCustomerServicePlan->companyCustomer->ref_no) : '' }} {{ $companyCustomerServicePlan->profile_name }}
{{ $companyCustomerServicePlan->companyCustomer ? $companyCustomerServicePlan->companyCustomer->phone : '' }}
{{ $companyCustomerServicePlan->companyServicePlan ? ucwords(strtolower($companyCustomerServicePlan->companyServicePlan->name)) : '' }}
@if($companyCustomerServicePlan->status == 0) inactive @elseif($companyCustomerServicePlan->status == 1) active @elseif($companyCustomerServicePlan->status == 2) expired @endif
{{ \Carbon\Carbon::parse($companyCustomerServicePlan->subscription_expiry_date)->format('d M Y') }} at {{ \Carbon\Carbon::parse($companyCustomerServicePlan->subscription_expiry_date)->format('h:i A') }} Summary['totalBalance'] > 0) style="color: red" @endif> Bal: Ksh {{ number_format($companyCustomerServicePlan->Summary['totalBalance']) }}