You are talking about an anchor <a> element; you can set the href attribute to your route; and in that route helper, you can add query params, e.g.
@if ($activerecord)
<a href="{{ route('fulltable', ['status' => 'active']) }}">{{ $activerecord }}</a>
@endif
In the Controller action, you can grab that query param from the Request:
public function index()
{
$employees = Employes::when(
request()->has('status'),
fn ($builder) => $builder->where('status', '=', request()->get('status'))
)->get();
return view('your-view-with-datatable' [
'status' => request()->get('status'),
'employees' => $employees
]);
}
I don't know which datatable package you're using but you should be able to set the filter property from the data passed to the view