@extends('backend.layouts.app') @section('content')
@include('backend.members.corporate.edit-header')
@csrf

Family Details

@php if(old('spouse_name')){ $spouse_name = old('spouse_name'); }elseif($editData){ $spouse_name = $editData->spouse_name; }else{ $spouse_name = null; } if(old('spouse_dob')){ $spouse_dob = old('spouse_dob'); }elseif($editData){ $spouse_dob = $editData->spouse_dob; }else{ $spouse_dob = null; } if(old('spouse_nid')){ $spouse_nid = old('spouse_nid'); }elseif($editData){ $spouse_nid = $editData->spouse_nid; }else{ $spouse_nid = null; } if(old('spouse_occupation')){ $spouse_occupation = old('spouse_occupation'); }elseif($editData){ $spouse_occupation = $editData->spouse_occupation; }else{ $spouse_occupation = null; } if(old('spouse_handicap')){ $spouse_handicap = old('spouse_handicap'); }else{ $spouse_handicap = $editData->spouse_handicap; } @endphp

Associate People

@if(old('name')) @foreach(old('name') as $key => $associate)
@if(isset(old('associate_id')[$key])) @endif
@error('name.'.$key) {{ $message }} @enderror
@error('dob.'.$key) {{ $message }} @enderror
@error('gender.'.$key) {{ $message }} @enderror
@if(isset(old('associate_id')[$key])) @else @endif

@endforeach @elseif($editData->associates && count($editData->associates)>0)
@foreach($editData->associates as $associate)

@endforeach
@else

@endif
@endsection @section('page_script') @endsection