php - print pdf of filtered data only in laravel

one text

I am creating a report of users in which I use different type of filters but how can I get pdf of filtered data only .I use,

composer require barryvdh/laravel-dompdf

my controller

function pdf()
    {
     $pdf = \App::make('dompdf.wrapper');
     $pdf->loadHTML($this->convert_customer_data_to_html());
     return $pdf->stream();
    }

but in above code I get all data from database, but my basic view have different type of filters like that 1-select from option

<div class="col-md-3 p-0" style="margin-bottom:35px">
          <select class="select-items" id="report_type">
            <option value="rider">user</option>
            <option value="driver">Driver</option>
          </select>
        </div>

2-autocomplete

<div class="col-md-3 p-0" style="margin-bottom:35px">
            <input type="text" id="myInput" onchange="SearchName()" onkeyup="SearchName()">
            <div id="List"></div>
          </div>

3-another dropdown like no 1

all the filters are working good on view ,but my question is that how will I get pdf of filtered data only

Source