@php $stageColour = fn (string $stage): string => match ($stage) { 'won' => 'emerald', 'lost' => 'rose', 'deferred' => 'amber', 'qualified', 'proposal', 'negotiation' => 'indigo', default => 'sky', }; $today = now(config('app.display_timezone'))->startOfDay(); @endphp
{{ __(':open open, :won won, :lost lost', ['open' => $counts['open'], 'won' => $counts['won'], 'lost' => $counts['lost']]) }}
| {{ __('Opportunity') }} | {{ __('Stage') }} | {{ __('Owner') }} | {{ __('Estimated value') }} | {{ __('Next action') }} |
|---|---|---|---|---|
|
{{ $opportunity->title }}
@if ($opportunity->originator && $opportunity->originator_id !== $opportunity->owner_id)
{{ __('Brought in by :name', ['name' => $opportunity->originator->name]) }} @endif |
|
{{ $opportunity->owner?->name ?? __('Not available') }} | @if ($opportunity->estimated_value === null) {{ __('Not estimated') }} @else {{ $opportunity->currency_code }} {{ number_format((float) $opportunity->estimated_value, 2) }} @endif | @if ($opportunity->isOpen() && $opportunity->next_action) {{ $opportunity->next_action }} @if ($opportunity->next_action_due) {{ $opportunity->next_action_due->lt($today) ? __('Overdue since :date', ['date' => $opportunity->next_action_due->format('j M Y')]) : __('Due :date', ['date' => $opportunity->next_action_due->format('j M Y')]) }} @endif @elseif ($opportunity->isOpen()) {{ __('No next action') }} @else {{ __('Closed') }} @endif |
|
|
||||