@extends('layout') @section('title',$opportunity->code.' · '.$opportunity->title) @section('content')
← Opportunities
{{ $opportunity->code }}Lead-to-cash

{{ $opportunity->title }}

{{ $opportunity->actor->name }} · {{ number_format((float)$opportunity->value,0) }} {{ $opportunity->currency }} · {{ $opportunity->probability }}% probability

{{ $opportunity->stage->label() }}{{ ucfirst($opportunity->status) }}
@if(auth()->user()->canAtlas('sales.manage'))Edit opportunity@endif
Commercial control

Opportunity facts

Owner
{{ $opportunity->owner?->name ?? 'Unassigned' }}
Expected close
{{ $opportunity->expected_close_on?->format('d M Y') ?? 'Not set' }}
Source
{{ $opportunity->source ?: 'Not recorded' }}
Next step
{{ $opportunity->next_step ?: 'Missing' }}
Next-step due
{{ $opportunity->next_step_due_at?->format('d M Y, H:i') ?? 'Not set' }}
Versioned offer

Proposals

@forelse($opportunity->proposals as $proposal)@empty@endforelse
VersionAmountStatusIssuedValid untilAction
{{ $proposal->code }} · v{{ $proposal->version }}{{ number_format((float)$proposal->amount,0) }} {{ $proposal->currency }}{{ ucfirst($proposal->status) }}{{ $proposal->issued_on?->format('d M Y') ?? 'Draft' }}{{ $proposal->valid_until?->format('d M Y') ?? 'Not set' }}@if(auth()->user()->canAtlas('sales.manage'))
@csrf @method('PUT')
@endif
No proposal version recorded.
Delivery conversion

Connected projects

@if(auth()->user()->canAtlas('projects.manage'))+ Convert to project@endif
@forelse($opportunity->projects as $project){{ $project->name }}{{ $project->code }} · {{ $project->manager?->name ?? 'Manager missing' }}{{ str($project->health)->replace('_',' ')->title() }}@empty
No project has been created from this opportunity.
@endforelse
@if(auth()->user()->canAtlas('sales.manage'))
@csrf
Versioned commercial offer

New proposal version

@endif @endsection