@@ -117,6 +117,7 @@ class ManageLeadController extends Controller
|
||||
|
||||
public function viewLead($id)
|
||||
{
|
||||
// dd($this->lead->show($id));
|
||||
return view('Admin.Pages.manage_leads.view-lead', [
|
||||
'lead' => $this->lead->show($id)
|
||||
]);
|
||||
|
||||
@@ -57,4 +57,9 @@ class Lead extends Model
|
||||
public function owner(){
|
||||
return $this->belongsTo(User::class, 'lead_owner');
|
||||
}
|
||||
|
||||
// public function leadsource(){
|
||||
// return $this->belongsTo(User::class, 'lead_source');
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@@ -89,8 +89,7 @@ class LeadService{
|
||||
}
|
||||
|
||||
public function show($id){
|
||||
return Lead::with('user', 'owner', 'notes.admin', 'attachment.admin', 'tasks_meetings.admin', 'calls.admin', 'product.category')->FindOrFail($id);
|
||||
// dd(Lead::with('user', 'owner', 'notes.admin', 'attachment.admin', 'tasks_meetings.admin', 'calls.admin', 'product.category')->FindOrFail($id));
|
||||
return Lead::with('user', 'owner', 'notes.admin', 'attachment.admin', 'tasks_meetings.admin', 'calls.admin', 'product.category','leadSource')->FindOrFail($id);
|
||||
}
|
||||
|
||||
public function edit($id){
|
||||
|
||||
@@ -1774,9 +1774,9 @@
|
||||
|
||||
<!-- <a class="action_icon" data-bs-toggle="modal" data-bs-target="#subjectpop">
|
||||
|
||||
<i class="fa fa-file-text" aria-hidden="true"></i>
|
||||
<i class="fa fa-file-text" aria-hidden="true"></i>
|
||||
|
||||
</a> -->
|
||||
</a> -->
|
||||
|
||||
<input type="text" id="" name="subject">
|
||||
|
||||
|
||||
@@ -520,7 +520,7 @@
|
||||
<td><i class="fa fa-phone-square" aria-hidden="true"></i><a
|
||||
href="">{{ $lead->mobile ? $lead->mobile : '--' }}</a>
|
||||
</td>
|
||||
<td>{{ $lead->lead_source ? $lead->lead_source : '--' }}</td>
|
||||
<td>{{ $lead->leadSource ? $lead->leadSource->name : '--' }}</td>
|
||||
<td>{{ $lead->modified_by ?? '--' }}</td>
|
||||
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user