@extends('layouts.app') @section('title', 'Pipeline de Ventas') @section('content')

Pipeline de Ventas

Visualización y gestión del pipeline de oportunidades

@foreach($stages as $stage)
{{ $stage->name }}
{{ $stage->opportunities->count() }}
@if($stage->description) {{ $stage->description }} @endif
@forelse($stage->opportunities as $opportunity)
{{ Str::limit($opportunity->name, 30) }}
{{ Str::limit($opportunity->client->business_name ?? 'N/A', 25) }} {{ $opportunity->salesman->first_name ?? 'N/A' }} {{ $opportunity->salesman->last_name ?? '' }}
${{ number_format($opportunity->estimated_value, 2) }}
Prob: {{ number_format($opportunity->probability, 1) }}%
Esperado: ${{ number_format($opportunity->expected_value, 2) }}
@if($opportunity->expected_close_date)
{{ $opportunity->expected_close_date->format('d/m/Y') }} @if($opportunity->is_overdue) Vencida @elseif($opportunity->days_to_close > 0) {{ $opportunity->days_to_close }} días @endif
@endif
@if($opportunity->canBeConverted())
@csrf
@endif
@empty

Sin oportunidades

@endforelse
@endforeach
@push('styles') @endpush @push('scripts') @endpush @endsection