Added click count to link info page
This commit is contained in:
parent
4e08fed843
commit
64b61e683c
|
@ -727,6 +727,7 @@ public function SendTestMail(Request $request)
|
|||
}
|
||||
|
||||
$linkData = Link::find($linkId);
|
||||
$clicks = $linkData->click_number;
|
||||
|
||||
if (empty($linkData)) {
|
||||
return abort(404);
|
||||
|
@ -749,7 +750,7 @@ public function SendTestMail(Request $request)
|
|||
$userID = $linkData->user_id;
|
||||
$userData = User::find($userID);
|
||||
|
||||
return view('linkinfo', ['linkID' => $linkId, 'link' => $link, 'id' => $userID, 'userData' => $userData]);
|
||||
return view('linkinfo', ['clicks' => $clicks, 'linkID' => $linkId, 'link' => $link, 'id' => $userID, 'userData' => $userData]);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -123,7 +123,8 @@
|
|||
{{__('messages.Email')}}: {{$userData->email}}
|
||||
{{__('messages.Role')}}: {{$userData->role}}
|
||||
{{__('messages.Created at')}}: {{$userData->created_at}}
|
||||
{{__('messages.Last seen')}}: {{$userData->updated_at}}</code>
|
||||
{{__('messages.Last seen')}}: {{$userData->updated_at}}
|
||||
{{__('messages.Link Clicks:')}} {{$clicks}}</code>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue