@extends('mainlayout.layout') @section('title', config('app.name') . ' | Leads') @section('topbar-search', 'enabled') @section('content')
Sales follow-up

Leads

Prioritized enquiries with a clear owner and next action.

New lead
@if(session('message'))
{{ session('message') }}
@endif
Clear
@forelse($leads as $lead) @empty@endforelse
CustomerInterestStagePriorityOwnerNext action
{{ $lead->customer_name ?: 'Unnamed lead' }}{{ $lead->phone ?: $lead->email }}{{ optional($lead->property)->name ?: 'Not selected' }}{{ optional($lead->plot)->plotnumber }}{{ ucfirst(str_replace('_', ' ', $lead->stage)) }}{{ ucfirst($lead->priority) }}{{ $lead->assignee ? trim($lead->assignee->first_name . ' ' . $lead->assignee->last_name) : 'Unassigned' }}{{ optional($lead->next_action_at)->diffForHumans() ?: 'Not scheduled' }}

No leads found

Adjust the filters or create a lead.

{{ $leads->links() }}
@endsection