<div>
<div class="search-widget widget-item mb-5">

<h3 class="widget-title">Search</h3>
<form action="{{ route('search_posts') }}" method="GET">
    <input type="text"  name="q" value="{{ request('q') ? request('q') : '' }}">
    <button type="submit" title="Search"><i class="icofont-search"></i></button>
</form>

</div>
</div>