?
<?php
namespace App\Livewire;
use Livewire\Component;
use App\Models\Matrimony;
use App\Models\Matrimonymaster;
use Illuminate\Support\Collection;
use Livewire\WithPagination;
class MatrimonialSearch extends Component
{
use WithPagination;
public $insideBanner ;
public $insideBannerText ;
public $fromAge = '';
public $toAge = '';
public $fromHeight = '';
public $toHeight = '';
public $maritialstatus = '';
public $educationstatus = '';
public $genderstatus = '';
public $dataviewer ;
public $perPage = 5;
public $getAgeList ;
public $getMaritialSatusList ;
public $getEducationList;
public $getGenderList ;
public $getHeightList ;
// public $getbloodgroupList ;
// public $getlocationList ;
protected $paginationTheme = 'bootstrap';
public function loadMore()
{
// $this->perPage = $this->perPage + 4;
}
public function render()
{
//$getlocationList = Masterlocation::getLocationName();
// $matMasterList = Matrimonymaster::ShowData(0);
$getAgeList = Matrimony::generateAgeList();
$getHeightList = Matrimonymaster::ShowData('Height');
$getEducationList = Matrimonymaster::ShowData('Education');
$getMaritialSatusList = Matrimony::getMaritalStatusCombo();
$getGenderList = Matrimony::getGenderCombo();
$dataviewer = Matrimony::getSearchForLiveWire($this->fromAge,$this->toAge,$this->fromHeight,$this->toHeight,$this->maritialstatus, $this->educationstatus,$this->genderstatus,$this->perPage);
return view('livewire.matrimonial-search',[
'searchOutput'=> $dataviewer,
'ageList'=> $getAgeList,
'heightList'=>$getHeightList,
'maritialSatusList'=>$getMaritialSatusList,
'genderList'=> $getGenderList,
'educationList'=>$getEducationList,
]);
}
}