@if($community->present()->canManage())
@php $communityPresenter = $community->present(); $totalMembers = 0; try { $totalMembers = (int) $communityPresenter->totalCommunityMembers(); } catch (\Throwable $e) { $totalMembers = (int) ($community->countMembers() ?? 0); } $categoryMap = []; if (!empty($categories)) { foreach ($categories as $cat) { try { $categoryMap[(string) $cat->id] = (string) ($cat->title ?? ''); } catch (\Throwable $e2) { // ignore } } } @endphp
{{ trans('community.community-members') }}: {{ $totalMembers }} Association Members | Community Details

Business Registration Link - {{$community->present()->url('ch/regbiz')}}

Business Directory - {{$community->present()->url('ch/bizlisting')}}

@if(!empty($membershipStoreUrl))

Membership Plan - {{$membershipStoreUrl}}

@endif
@php $rows = $associationmembers; if ($rows && method_exists($rows, 'items')) { $rows = $rows->items(); } @endphp @if(empty($rows) || count($rows) === 0) @else @foreach($rows as $biz) @php $normalizeDateText = function ($value) { if ($value === null) { return ''; } try { if ($value instanceof \Carbon\CarbonInterface || $value instanceof \DateTimeInterface) { return $value->format('M j, Y'); } if (is_string($value)) { $v = trim($value); if ($v === '' || preg_match('/^(0000-00-00)(\b|\s)/', $v) || preg_match('/^(1970-01-01)(\b|\s)/', $v)) { return ''; } if (preg_match('/^\d{4}-\d{2}-\d{2}/', $v)) { try { return \Carbon\Carbon::parse($v)->format('M j, Y'); } catch (\Throwable $e) { // fall through } } return $v; } return (string) $value; } catch (\Throwable $e) { return is_string($value) ? trim($value) : (string) $value; } }; $joinedAt = $biz->joined_date ?? $biz->joined_at ?? $biz->created_at ?? null; $joinedText = $normalizeDateText($joinedAt); $renewalAt = $biz->renewal_date ?? $biz->renewaldate ?? null; $renewalText = $normalizeDateText($renewalAt); $rawCat = $biz->category_id ?? $biz->category ?? ''; $key = is_numeric($rawCat) ? (string) ((int) $rawCat) : (string) $rawCat; $catTitle = $categoryMap[$key] ?? ''; @endphp @endforeach @endif
Association Member Details
Organization name Address Website Contact Name Email Address Contact Number Membership Status Joined date Membership type Amount Renewal date KYC Public Status About the organization Category
No association members found.
{{ $biz->organization_name }}
{{ $biz->organization_address }}
@if(!empty($biz->website)) {{ $biz->website }} @else - @endif
{{ $biz->admin_name }}
{{ $biz->organization_email ?: $biz->admin_email }}
@if($biz->contact ) +{{ $biz->carrier_code }}@endif {{ $biz->contact }}
{{ $biz->membership_status ?? $biz->member_ship_status }}
{{ $joinedText !== '' ? $joinedText : '-' }}
{{ $biz->membership_type }}
{{ $biz->amount }}
{{ $renewalText !== '' ? $renewalText : '-' }}
{{ $biz->kyc_status ?? $biz->kyc }}
@php $publicRaw = $biz->public_status ?? $biz->public ?? $biz->is_public ?? $biz->status ?? null; $publicNormalized = is_string($publicRaw) ? strtolower(trim($publicRaw)) : $publicRaw; $isActive = false; if ($publicNormalized === null || $publicNormalized === '') { $isActive = false; } elseif (is_bool($publicNormalized)) { $isActive = $publicNormalized; } elseif (is_numeric($publicNormalized)) { $isActive = ((int) $publicNormalized) > 0; } elseif (is_string($publicNormalized)) { $isActive = in_array($publicNormalized, ['1','true','active','yes','y','on'], true); } @endphp {{ $isActive ? 'Active' : 'Inactive' }}
@if(strlen($biz->about_organization) >70)
{{strip_tags(Str::limit($biz->about_organization, 70))}} {{trans('businessecommerce.read-more')}}
{!! $biz->about_organization !!} {{trans('businessecommerce.read-less')}}
@else {!! $biz->about_organization !!} @endif
{{ $catTitle !== '' ? $catTitle : $rawCat }}
@if($associationmembers && method_exists($associationmembers, 'render')) {!! $associationmembers->render() !!} @endif
@endif