First, you need to set a session variable when the link is clicked. You can do this in the controller method that handles the /tampilkanbarang/{id} route.
public function show($id)
{
// Your existing code...
// Set a session variable to indicate that the user has clicked the link.
session([ clicked_link_ . Auth::id() . _ . $id => true]);
// More of your existing code...
}
Then, in your Blade template, you can check this session variable to determine whether to render the link as clickable or not.
@if (!session( clicked_link_ . Auth::id() . _ . $row->id))
<a href="/tampilkanbarang/{{$row->id}}">Proses</a>
@else
<span>Proses</span>
@endif