@extends('layouts.master', ['vueView' => 'nmgResourcesList']) @section('content')

{{ $nmg->clients->name }}@if($nmg->inactive_date) - FORMER CLIENT @endif

@if($nmg->display_public == 1 && (is_null($nmg->inactive_date) || $nmg->inactive_date == '')) Public Page @endif @if(in_array('edit:nmg_clients', $permissions)) Edit @endif
@if(!is_null($nmg->main_image_authenticated) && !str_contains($nmg->main_image_authenticated, 'no-image') ) @else @endif
@if($nmg->clients->bio) Bio @endif

{!! implode( "

\n\n

", preg_split( '/\n(?:\s*\n)+/', $nmg->clients->bio) ) !!}

@if($nmg->clients->pointAgents->count() > 0) Point Agents: @foreach($nmg->clients->pointAgents as $user) {{ $user->first_name }} {{ $user->last_name }}@if($user->inactive_date_temporary == 1) - TLO @elseif( !is_null($user->inactive_date)) (FORMER EMPLOYEE)@endif{{ $loop->remaining > 0 ? ', ' : '' }} @endforeach @endif

@if($nmg->clients->supportAgents->count() > 0) Agent Team: @foreach($nmg->clients->supportAgents as $user) {{ $user->first_name }} {{ $user->last_name }}@if($user->inactive_date_temporary == 1) - TLO @elseif( !is_null($user->inactive_date)) (FORMER EMPLOYEE)@endif{{ $loop->remaining > 0 ? ', ' : '' }} @endforeach @endif

@if(count($nmg->Clients->genders) > 0)

Sex: {{ $nmg->Clients->genders->pluck('name')->join(', ') }}

@endif @if($nmg->clients && $nmg->clients->pronouns)

Pronouns: {{ $nmg->clients->pronouns }}

@endif @if(count($nmg->clients->ethnicities) > 0)

Ethnicity: @foreach($nmg->clients->ethnicities as $ethnicity) {{ $ethnicity->name }}{{ $loop->remaining > 0 ? ', ' : '' }} @endforeach

@endif @if($nmg->clients->ethnicity_note)

Ethnicity Note: {{ $nmg->clients->ethnicity_note }}

@endif @if($nmg->height_string)

Height: {{ $nmg->height_string }}

@endif

Title: @if(!empty($nmg->title)) {{$nmg->title}} @else - @endif

Employer: @if(!empty($nmg->employer)) {{$nmg->employer}} @else - @endif

Location: @if(!empty($nmg->location)) {{$nmg->location}} @else - @endif

{{-- close side-by-side area --}}
@foreach($nmg->allSocialInfo as $sm) @if(!is_null($sm[1]) && $sm[1] !== "")
@if(!is_null($sm[2]))
{{$sm[2][0]}}
{{$sm[2][2]}}
@endif
@endif @endforeach
@stop