if (!empty($search)){
$member = $member->where(function($q)use($search){$q->where('name', 'LIKE', '%' . $search . '%')->orWhere('contact', 'LIKE', '%' . $search . '%')->orWhere('contact02', 'LIKE', '%' . $search . '%')->orWhere('email', 'LIKE', '%' . $search . '%')->orWhere('blood_group', 'LIKE', '%' . $search . '%'); });
}