@extends('layout') @section('title', $actor->code.' · '.$actor->name) @section('content')
← Relationships
{{ $actor->code }}{{ $actor->type->label() }}

{{ $actor->name }}

{{ $actor->notes ?: 'No relationship notes recorded.' }}

{{ str($actor->relationship_stage)->title() }}{{ ucfirst($actor->status) }}
@if(auth()->user()->canAtlas('customers.manage'))Edit relationship@endif
Opportunities{{ $actor->opportunities->count() }}
Projects{{ $actor->projects->count() }}
Invoiced{{ number_format($financial['invoiced'],0) }} {{ $currentOrganization->currency }}
Collected{{ number_format($financial['collected'],0) }} {{ $currentOrganization->currency }}
Outstanding{{ number_format($financial['outstanding'],0) }} {{ $currentOrganization->currency }}
Identity

Contact

Legal name
{{ $actor->legal_name ?: 'Not recorded' }}
Email
{{ $actor->primary_email ?: 'Not recorded' }}
Phone
{{ $actor->primary_phone ?: 'Not recorded' }}
Owner
{{ $actor->owner?->name ?? 'Unassigned' }}
Relationship history

Interactions

@if(auth()->user()->canAtlas('customers.manage'))@endif
@forelse($actor->interactions as $interaction)
{{ ucfirst($interaction->type) }} · {{ $interaction->user?->name ?? 'System' }}

{{ $interaction->summary }}

@if($interaction->next_action)Next: {{ $interaction->next_action }}{{ $interaction->next_action_at ? ' · '.$interaction->next_action_at->format('d M') : '' }}@endif
@empty
No interactions recorded.
@endforelse
Lead-to-cash

Opportunities

@if(auth()->user()->canAtlas('sales.manage'))+ New@endif
Delivery

Projects

@if(auth()->user()->canAtlas('projects.manage'))+ New@endif
@if(auth()->user()->canAtlas('customers.manage'))
@csrf
Relationship memory

Record interaction

@endif @endsection