<form action="{{url('/searchall')}}" method="get">
        <label for="search" class="sr-only">searchhere</label>
        <input type="text" id="search" placeholder="Search Here..." name="name"/>
        <button type="submit" aria-label="search submit" class="thm-btn">Submit</button>
</form>

Template:

<?php
/* Template Name: Search
    Version: 1.0
*/
?> 
<section class="page-header ">
    <div class="page-header-bg" style="background-image: url({{ asset('/public/uploads/')}}/{{getPostTypeBySlug('search')->pt_thumbnail_path}})"></div>
    <div class="container">
        <div class="page-header__inner">            
            <h2>{{ getPostTypeBySlug('search')->name }}</h2>
        </div>
    </div>
</section>
 
<div class="container mb-4 mt-4">
    <h3 class="mb-4">Search Result:</h3>

    @forelse ($posts as $post)
        <div class="d-flex align-items-center mb-3 border-bottom pb-2">
            
            <!-- Thumbnail -->
            <div style="width: 80px; height: 60px; overflow: hidden; flex-shrink: 0;">
                <a href="{{ url($post->post_type, $post->slug) }}">
                    <img src="{{ asset('public/uploads/' . $post->thumbnail_path) }}"
                         alt="{{ $post->title }}"
                         style="width: 100%; height: 100%; object-fit: cover;">
                </a>
            </div>

            <!-- Title -->
            <div class="ms-3">
                <a href="{{ url($post->post_type, $post->slug) }}" class="text-decoration-none text-dark">
                    <h6 class="mb-0">{{ $post->title }}</h6>
                </a>
            </div>

        </div>
    @empty
        <p>Search Result Not Found.</p>
    @endforelse

    {!! $posts->withQueryString()->links('pagination::bootstrap-5') !!}
</div>