Added search function and frontend of add contacts

This commit is contained in:
Aqeeb Imtiaz Harun
2018-06-12 13:45:51 +08:00
parent 3c1f2c522d
commit eee806bd6d
2 changed files with 48 additions and 10 deletions
+2 -9
View File
@@ -23,15 +23,8 @@ class CompanyController extends Controller
{
foreach ($matchedTerms as $key => $matchedTerm)
{
array_push($output,
'<li style="display: show;">
<a href="#">
<i class="fa fa-user"></i>' . $matchedTerm->company_name .
'<span class="list-item-title-role" style="margin-top:-10px">' . $matchedTerm->tel_no . '</span>
<br>
<span class="list-item-title-role" style="margin-top:-10px">' . $matchedTerm->contact_person . '</span>
</a>
</li> <br>');
array_push($output, ['company_name' => $matchedTerm->company_name, 'tel_no' => $matchedTerm->tel_no,
'contact_person'=>$matchedTerm->contact_person ]);
}
return response($output);