Keluarga

@if ($user->gender_id == 1) @else @endif
Ayah @if ($user->father_id) {{ $user->father->profileLink() }} @else {{ Form::open(['route' => ['family-actions.set-father', $user->id]]) }} {!! FormField::select('set_father_id', $malePersonList, ['label' => false]) !!}
{{ Form::text('set_father', null, ['class' => 'form-control input-sm']) }} {{ Form::submit('update', ['class' => 'btn btn-info btn-sm', 'id' => 'set_father_button']) }}
{{ Form::close() }} @endif
Ibu @if ($user->mother_id) {{ $user->mother->profileLink() }} @else {{ Form::open(['route' => ['family-actions.set-mother', $user->id]]) }} {!! FormField::select('set_mother_id', $femalePersonList, ['label' => false]) !!}
{{ Form::text('set_mother', null, ['class' => 'form-control input-sm']) }} {{ Form::submit('update', ['class' => 'btn btn-info btn-sm', 'id' => 'set_mother_button']) }}
{{ Form::close() }} @endif
Isteri @if ($user->wifes->isEmpty() == false)
    @foreach($user->wifes as $wife)
  • {{ $wife->profileLink() }}
  • @endforeach
@else {{ Form::open(['route' => ['family-actions.add-wife', $user->id]]) }} {!! FormField::select('set_wife_id', $femalePersonList, ['label' => false]) !!}
{{ Form::text('set_wife', null, ['class' => 'form-control input-sm']) }} {{ Form::submit('update', ['class' => 'btn btn-info btn-sm', 'id' => 'set_wife_button']) }}
{{ Form::close() }} @endif
Suami @if ($user->husbands->isEmpty() == false)
    @foreach($user->husbands as $husband)
  • {{ $husband->profileLink() }}
  • @endforeach
@else {{ Form::open(['route' => ['family-actions.add-husband', $user->id]]) }} {!! FormField::select('set_husband_id', $malePersonList, ['label' => false]) !!}
{{ Form::text('set_husband', null, ['class' => 'form-control input-sm']) }} {{ Form::submit('update', ['class' => 'btn btn-info btn-sm', 'id' => 'set_husband_button']) }}
{{ Form::close() }} @endif