@php
if(old('full_name')){
$full_name = old('full_name');
}elseif($editData){
$full_name = $editData->full_name;
}else{
$full_name = null;
}
if(old('father_name')){
$father_name = old('father_name');
}elseif($editData){
$father_name = $editData->father_name;
}else{
$father_name = null;
}
if(old('mother_name')){
$mother_name = old('mother_name');
}elseif($editData){
$mother_name = $editData->mother_name;
}else{
$mother_name = null;
}
if(old('gender')){
$gender = old('gender');
}elseif($editData){
$gender = $editData->gender;
}else{
$gender = null;
}
if(old('marital_status')){
$marital_status = old('marital_status');
}elseif($editData){
$marital_status = $editData->marital_status;
}else{
$marital_status = null;
}
if(old('dob')){
$dob = old('dob');
}elseif($editData){
$dob = $editData->dob;
}else{
$dob = null;
}
if(old('country_id')){
$country_id = old('country_id');
}elseif($editData){
if($editData->country_id){
$country_id = $editData->country_id;
}else{
$country_id = 19;
}
}else{
$country_id = 19;
}
if(old('member_category_id')){
$member_category_id = old('member_category_id');
}elseif($editData){
$member_category_id = $editData->member_category_id;
}else{
$member_category_id = null;
}
if(old('blood_group')){
$blood_group = old('blood_group');
}elseif($editData){
$blood_group = $editData->blood_group;
}else{
$blood_group = null;
}
if(old('additional_info')){
$additional_info = old('additional_info');
}elseif($editData){
$additional_info = $editData->additional_info;
}else{
$additional_info = null;
}
if(old('ba_no')){
$ba_no = old('ba_no');
}elseif($editData){
$ba_no = $editData->ba_no;
}else{
$ba_no = null;
}
if(old('email')){
$email = old('email');
}elseif($editData){
$email = $editData->email;
}else{
$email = '';
}
if(old('mobile_number')){
$mobile_number = old('mobile_number');
}elseif($editData){
$mobile_number = $editData->mobile_number;
}else{
$mobile_number = '';
}
if(old('telephone')){
$telephone = old('telephone');
}elseif($editData){
$telephone = $editData->telephone;
}else{
$telephone = '';
}
if(old('present_address')){
$present_address = old('present_address');
}elseif($editData){
$present_address = $editData->present_address;
}else{
$present_address = '';
}
@endphp
@error('member_photo')
{{$message}}
@enderror