@php $badges = [ 'new' => 'badge-subtle-info', 'contacted' => 'badge-subtle-primary', 'quoted' => 'badge-subtle-warning', 'won' => 'badge-subtle-success', 'lost' => 'badge-subtle-danger', ]; @endphp
{{ __('Leads') }} @if (session('lead-flash'))
{{ session('lead-flash') }}
@endif
@if ($showForm)
{{ $editingId ? __('Edit lead') : __('New lead') }}
@endif
{{ __('Pipeline') }}
@forelse ($leads as $lead) @empty @endforelse
{{ __('Lead') }} {{ __('Area') }} {{ __('Wants') }} {{ __('Owner') }} {{ __('Call back') }} {{ __('Status') }} {{ __('Actions') }}
{{ $lead->name }} @if ($lead->phone) {{ $lead->phone }} @endif {{ $lead->location ?: '—' }} {{ $lead->package?->package ?: '—' }} {{ $lead->owner?->name ?: '—' }} @if ($lead->follow_up_on) {{ $lead->follow_up_on->format('d M') }} @if ($lead->isOverdue()) @endif @else @endif {{ ucfirst($lead->status) }} @if (! in_array($lead->status, ['won', 'lost'])) @endif
{{ __('No leads here. Add the people who have asked about connections.') }}
@if ($leads->hasPages())
{{ $leads->links() }}
@endif