Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Bottelet/DaybydayCRM

2311 stars
1 code files
View Bottelet/DaybydayCRM on GitHub

app/Http/Controllers/LeadsController.php

Open in GitHub
class LeadsController extends Controller
{
//
public function show($external_id)
{
$lead = $this->findByExternalId($external_id);
 
$offers = $lead->offers->map(function($offer) {
return new InvoiceCalculator($offer);
});
 
return view('leads.show')
->withLead($lead)
->withOffers($offers)
->withUsers(User::with(['department'])->get()->pluck('nameAndDepartmentEagerLoading', 'id'))
->withCompanyname(Setting::first()->company)
->withStatuses(Status::typeOfLead()->pluck('title', 'id'));
}
//
}

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.