@include('partials.head', ['title' => $pageTitle])
@include('partials.sidebar')
@include('partials.navbar')

{{ $pageTitle }}

{{ $pagesubTitle }}

@forelse ($company as $rep) @php $profile = $rep->company; $addressLines = array_filter([ $profile->address1 ?? null, $profile->address2 ?? null, $profile->address3 ?? null, ]); $cityLine = array_filter([ $profile->postcode ?? null, $profile->city ?? null, ]); $isActive = $rep->status == 1; @endphp
{{ Str::upper(Str::substr($profile->ssm_name ?? '?', 0, 1)) }}
{{ $profile->ssm_name ?? 'Unknown Company' }}
SSM No: {{ $rep->ssm_id }}
{{ $rep->status_label }}
Address

@if (count($addressLines) || count($cityLine)) {{ implode(', ', $addressLines) }} @if (count($addressLines) && count($cityLine))
@endif {{ implode(' ', $cityLine) }} @if ($profile->state) , {{ $profile->state }} @endif @if ($profile->country)
{{ $profile->country }} @endif @else Not provided @endif

Organization

{{ $profile->organization?->desc ?? '—' }}

Business Type

{{ $profile->businessType?->desc ?? '—' }}

Registered On

{{ $profile->registered_at ? \Carbon\Carbon::parse($profile->registered_at)->format('d M Y') : '—' }}


Your Representative

{{ $rep->rep_name }}

{{ $rep->rep_email }}
@empty
No companies are linked to your account yet.
@endforelse
@include('partials.footer')