?
Current File : /home/sanghavirealty/public_html/appazwer/Livewire/FamilySearch.php
<?php

namespace App\Livewire;
use Livewire\Component;
use App\Models\Personalbrand;
use App\Models\Masterlocation;
use Illuminate\Support\Collection;

use Livewire\WithPagination;



class FamilySearch extends Component
{

    use WithPagination;

    public $searchTerm = '';
    public $location = '';

    public $insideBanner ;
    public $insideBannerText ; 

    public $dataviewer ;
    public $perPage = 10;  


    // public $getbloodgroupList  ;
    public $getlocationList  ;

   protected $paginationTheme = 'bootstrap';


   public function loadMore()
   {
       // $this->perPage = $this->perPage + 4;
   }




    public function render()
    {


        // $getbloodgroupList = Personalbrand::getBloodGroup();
        $getlocationList = Masterlocation::getLocationName();




       $dataviewer = Personalbrand::getSearchForFamilyLiveWire($this->searchTerm,$this->location,$this->perPage);




        return view('livewire.family-search',[


            'searchOutput'=> $dataviewer, 
            'listLocation'=>$getlocationList,
       
        ]);

    }
}