@extends('layouts.app') @section('style') @endsection @section('content')
@csrf {{-- Family Background --}}

Family Background

@if ($errors->has('family_member.0.fullname'))
{{ $errors->first('family_member.0.fullname') }}
@endif
@if ($errors->has('family_member.0.occupation'))
{{ $errors->first('family_member.0.occupation') }}
@endif
@if ($errors->has('family_member.0.contact_number'))
{{ $errors->first('family_member.0.contact_number') }}
@endif
@if ($errors->has('family_member.0.date_of_birth'))
{{ $errors->first('family_member.0.date_of_birth') }}
@endif
@if ($errors->has('family_member[0][relationship]'))
{{ $errors->first('family_member[0][relationship]') }}
@endif
@if ($errors->has('family_member.0.address'))
{{ $errors->first('family_member.0.address') }}
@endif
first()->is_emergency ?? '' || old('emergency_contact') == 1) checked="checked" @endif value="0">

@section('script') @endsection @endsection