?
<?php
namespace App\Livewire;
use Livewire\Component;
use App\Models\Personalbrand;
use App\Models\Masterlocation;
use Illuminate\Support\Collection;
use Livewire\WithPagination;
class BloodSearch extends Component
{
use WithPagination;
public $bloodgroup = '';
public $location = '';
public $dataviewer ;
public $perPage = 20 ;
public $insideBanner ;
public $insideBannerText ;
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::getSearchForLiveWire($this->bloodgroup,$this->location,$this->perPage);
// if($this->search != ''){
// }else{
// //$dataviewer = $this->dataviewer = new collection();
// $dataviewer = null ;
// }
return view('livewire.blood-search',[
'searchOutput'=> $dataviewer,
'listLocation'=>$getlocationList,
'listBloodgroup'=>$getbloodgroupList,
]);
}
}