@trans('crm.Opportunity Pipeline')

@trans('crm.Add Opportunity')
@php $hasStages = false; @endphp @foreach($pipelines as $pipeline) @foreach($pipeline->stages as $stage) @php $hasStages = true; @endphp

{{ $stage->name }}

{{ $stage->opportunities->count() }}
@foreach($stage->opportunities as $opportunity)
{{ $opportunity->opportunity_number }}
{{ number_format($opportunity->expected_revenue, 2) }} {{ $opportunity->created_at->format('M d') }}
@endforeach @if($stage->opportunities->isEmpty())
@trans('crm.No opportunities')
@endif
@endforeach @endforeach @if(!$hasStages)

@trans('crm.Pipeline Stages Not Configured')

@trans('crm.To use the Kanban board, you need to define stages for your sales pipeline first.')

@trans('crm.Go to Settings & Add Stages')
@endif