Family Information

{!! Html::decode(Form::label('tamrakar_id', 'Tamrakar Id * ')) !!} {{ Form::text('tamrakar_id', null, ['class' => 'form-control' . ($errors->has('tamrakar_id') ? ' is-invalid' : '')]) }} @if ($errors->has('tamrakar_id'))
{{ $errors->first('tamrakar_id') }}
@endif
{!! Html::decode(Form::label('family_id', 'Family Id * ')) !!} {{ Form::text('family_id', null, ['placeholder' => 'will be uniquely auto generated and saved', 'class' => 'form-control' . ($errors->has('family_id') ? ' is-invalid' : ''), 'readonly' => true]) }} @if ($errors->has('family_id'))
{{ $errors->first('family_id') }}
@endif
{!! Html::decode(Form::label('prefix', 'Prefix')) !!} {!! Form::select('prefix', $prefixes, $family->prefix ?? null, [ 'class' => 'form-control' . ($errors->has('prefix') ? ' is-invalid' : ''), 'placeholder' => 'Select Prefix', ]) !!} @if ($errors->has('prefix'))
{{ $errors->first('prefix') }}
@endif
{!! Html::decode(Form::label('fname_en', 'First Name [English] * ')) !!} {{ Form::text('fname_en', null, ['class' => 'form-control' . ($errors->has('fname_en') ? ' is-invalid' : '')]) }} @if ($errors->has('fname_en'))
{{ $errors->first('fname_en') }}
@endif
{!! Html::decode(Form::label('lname_en', 'Last Name [English] * ')) !!} {{ Form::text('lname_en', null, ['class' => 'form-control' . ($errors->has('lname_en') ? ' is-invalid' : '')]) }} @if ($errors->has('lname_en'))
{{ $errors->first('lname_en') }}
@endif
{!! Html::decode(Form::label('father_name', 'Father Name')) !!} {{ Form::text('father_name', null, ['class' => 'form-control' . ($errors->has('father_name') ? ' is-invalid' : '')]) }} @if ($errors->has('father_name'))
{{ $errors->first('father_name') }}
@endif
{!! Html::decode(Form::label('husband_name', 'Husband Name')) !!} {{ Form::text('husband_name', null, ['class' => 'form-control' . ($errors->has('husband_name') ? ' is-invalid' : '')]) }} @if ($errors->has('husband_name'))
{{ $errors->first('husband_name') }}
@endif
{!! Html::decode(Form::label('gender', 'Gender')) !!} {!! Form::select('gender', $genders, $family->gender ?? null, [ 'class' => 'form-control' . ($errors->has('gender') ? ' is-invalid' : ''), 'placeholder' => 'Select Gender', ]) !!} @if ($errors->has('gender'))
{{ $errors->first('gender') }}
@endif
{!! Html::decode(Form::label('district_en', 'District [English]')) !!} {{ Form::text('district_en', null, ['class' => 'form-control' . ($errors->has('district_en') ? ' is-invalid' : '')]) }} @if ($errors->has('district_en'))
{{ $errors->first('district_en') }}
@endif
{!! Html::decode(Form::label('wardno_en', 'Ward Number [English]')) !!} {{ Form::text('wardno_en', null, ['class' => 'form-control' . ($errors->has('wardno_en') ? ' is-invalid' : '')]) }} @if ($errors->has('wardno_en'))
{{ $errors->first('wardno_en') }}
@endif
{!! Html::decode(Form::label('address_en', 'Address [English]')) !!} {{ Form::text('address_en', null, ['class' => 'form-control' . ($errors->has('address_en') ? ' is-invalid' : '')]) }} @if ($errors->has('address_en'))
{{ $errors->first('address_en') }}
@endif
{!! Html::decode(Form::label('dob_en', 'DOB [AD]')) !!} {{ Form::text('dob_en', null, ['class' => 'form-control flatpicker-calender' . ($errors->has('dob_en') ? ' is-invalid' : ''), 'autocomplete' => 'off', 'id' => 'datetime-local']) }} @if ($errors->has('dob_en'))
{{ $errors->first('dob_en') }}
@endif
{!! Html::decode(Form::label('dob_np', 'DOB [BS]')) !!} {{ Form::text('dob_np', null, ['class' => 'form-control' . ($errors->has('dob_np') ? ' is-invalid' : '')]) }} @if ($errors->has('dob_np'))
{{ $errors->first('dob_np') }}
@endif
{!! Html::decode(Form::label('area', 'Area')) !!} {!! Form::select('area', $areas, $family->area ?? null, [ 'class' => 'form-control' . ($errors->has('area') ? ' is-invalid' : ''), 'placeholder' => 'Select Area', ]) !!} @if ($errors->has('area'))
{{ $errors->first('area') }}
@endif
{!! Html::decode(Form::label('citizenship_no', 'Citizeship No.')) !!} {{ Form::text('citizenship_no', null, ['class' => 'form-control' . ($errors->has('citizenship_no') ? ' is-invalid' : '')]) }} @if ($errors->has('citizenship_no'))
{{ $errors->first('citizenship_no') }}
@endif
{!! Html::decode(Form::label('martial_status', 'Martial Status')) !!} {!! Form::select('martial_status', $martialStatuses, $family->martial_status ?? null, [ 'class' => 'form-control' . ($errors->has('martial_status') ? ' is-invalid' : ''), 'placeholder' => 'Select Martial Status', ]) !!} @if ($errors->has('martial_status'))
{{ $errors->first('martial_status') }}
@endif
{!! Html::decode(Form::label('status', 'Status * ')) !!} {!! Form::select('status', $statuses, $family->status ?? null, [ 'class' => 'form-control' . ($errors->has('status') ? ' is-invalid' : ''), 'placeholder' => 'Select Status', ]) !!} @if ($errors->has('status'))
{{ $errors->first('status') }}
@endif
{!! Html::decode(Form::label('mobile_no', 'Mobile No.')) !!} {{ Form::text('mobile_no', null, ['class' => 'form-control' . ($errors->has('mobile_no') ? ' is-invalid' : '')]) }} @if ($errors->has('mobile_no'))
{{ $errors->first('mobile_no') }}
@endif
{!! Html::decode(Form::label('phone_no', 'Phone No.')) !!} {{ Form::text('phone_no', null, ['class' => 'form-control' . ($errors->has('phone_no') ? ' is-invalid' : '')]) }} @if ($errors->has('phone_no'))
{{ $errors->first('phone_no') }}
@endif
{!! Html::decode(Form::label('email', 'Email')) !!} {{ Form::text('email', null, ['class' => 'form-control' . ($errors->has('email') ? ' is-invalid' : '')]) }} @if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
Education Completed

{!! Html::decode(Form::label('edu_comp', 'Level')) !!} {!! Form::select('edu_comp', $levels, $family->edu_comp ?? null, [ 'class' => 'form-control' . ($errors->has('edu_comp') ? ' is-invalid' : ''), 'placeholder' => 'Select Level', ]) !!} @if ($errors->has('edu_comp'))
{{ $errors->first('edu_comp') }}
@endif
{!! Html::decode(Form::label('edu_comp_subject', 'Subject')) !!} {!! Form::select('edu_comp_subject', $subjects, $family->edu_comp_subject ?? null, [ 'class' => 'form-control' . ($errors->has('edu_comp_subject') ? ' is-invalid' : ''), 'placeholder' => 'Select Subject', ]) !!} @if ($errors->has('edu_comp_subject'))
{{ $errors->first('edu_comp_subject') }}
@endif
{!! Html::decode(Form::label('edu_comp_inst', 'Institute')) !!} {!! Form::select('edu_comp_inst', $institutes, $family->edu_comp_inst ?? null, [ 'class' => 'form-control' . ($errors->has('edu_comp_inst') ? ' is-invalid' : ''), 'placeholder' => 'Select Institute', ]) !!} @if ($errors->has('edu_comp_inst'))
{{ $errors->first('edu_comp_inst') }}
@endif
{!! Html::decode(Form::label('edu_comp_year', 'Year')) !!} {{ Form::text('edu_comp_year', null, ['class' => 'form-control' . ($errors->has('edu_comp_year') ? ' is-invalid' : '')]) }} @if ($errors->has('edu_comp_year'))
{{ $errors->first('edu_comp_year') }}
@endif
Current Education

{!! Html::decode(Form::label('edu_current', 'Level')) !!} {!! Form::select('edu_current', $levels, $family->edu_current ?? null, [ 'class' => 'form-control' . ($errors->has('edu_current') ? ' is-invalid' : ''), 'placeholder' => 'Select Level', ]) !!} @if ($errors->has('edu_current'))
{{ $errors->first('edu_current') }}
@endif
{!! Html::decode(Form::label('edu_current_subject', 'Subject')) !!} {!! Form::select('edu_current_subject', $subjects, $family->edu_current_subject ?? null, [ 'class' => 'form-control' . ($errors->has('edu_current_subject') ? ' is-invalid' : ''), 'placeholder' => 'Select Subject', ]) !!} @if ($errors->has('edu_current_subject'))
{{ $errors->first('edu_current_subject') }}
@endif
{!! Html::decode(Form::label('edu_current_inst', 'Institute')) !!} {!! Form::select('edu_current_inst', $institutes, $family->edu_current_inst ?? null, [ 'class' => 'form-control' . ($errors->has('edu_current_inst') ? ' is-invalid' : ''), 'placeholder' => 'Select Institute', ]) !!} @if ($errors->has('edu_current_inst'))
{{ $errors->first('edu_current_inst') }}
@endif
{!! Html::decode(Form::label('edu_current_inst_address', 'Address')) !!} {{ Form::text('edu_current_inst_address', null, ['class' => 'form-control' . ($errors->has('edu_current_inst_address') ? ' is-invalid' : '')]) }} @if ($errors->has('edu_current_inst_address'))
{{ $errors->first('edu_current_inst_address') }}
@endif
Trainings & Profession

{!! Html::decode(Form::label('trainings', 'Training')) !!} {{ Form::textarea('trainings', null, ['rows' => 2, 'cols' => 2, 'class' => 'form-control' . ($errors->has('trainings') ? ' is-invalid' : '')]) }} @if ($errors->has('trainings'))
{{ $errors->first('trainings') }}
@endif
{!! Html::decode(Form::label('involvements', 'Involvements')) !!} {{ Form::textarea('involvements', null, ['rows' => 2, 'cols' => 2, 'class' => 'form-control' . ($errors->has('involvements') ? ' is-invalid' : '')]) }} @if ($errors->has('involvements'))
{{ $errors->first('involvements') }}
@endif
{!! Html::decode(Form::label('profession', 'Profession / Occupation')) !!} {!! Form::select('profession', $professions, $family->profession ?? null, [ 'class' => 'form-control' . ($errors->has('profession') ? ' is-invalid' : ''), 'placeholder' => 'Select Profession', ]) !!} @if ($errors->has('profession'))
{{ $errors->first('profession') }}
@endif
{!! Html::decode(Form::label('office_name', 'Office Name')) !!} {{ Form::text('office_name', null, ['class' => 'form-control' . ($errors->has('office_name') ? ' is-invalid' : '')]) }} @if ($errors->has('office_name'))
{{ $errors->first('office_name') }}
@endif
{!! Html::decode(Form::label('office_email', 'Office Email')) !!} {{ Form::text('office_email', null, ['class' => 'form-control' . ($errors->has('office_email') ? ' is-invalid' : '')]) }} @if ($errors->has('office_email'))
{{ $errors->first('office_email') }}
@endif
{!! Html::decode(Form::label('office_phone', 'Office Phone')) !!} {{ Form::text('office_phone', null, ['class' => 'form-control' . ($errors->has('office_phone') ? ' is-invalid' : '')]) }} @if ($errors->has('office_phone'))
{{ $errors->first('office_phone') }}
@endif
{!! Html::decode(Form::label('office_fax', 'Office Fax')) !!} {{ Form::text('office_fax', null, ['class' => 'form-control' . ($errors->has('office_fax') ? ' is-invalid' : '')]) }} @if ($errors->has('office_fax'))
{{ $errors->first('office_fax') }}
@endif
{!! Html::decode(Form::label('office_address', 'Office Address')) !!} {{ Form::text('office_address', null, ['class' => 'form-control' . ($errors->has('office_address') ? ' is-invalid' : '')]) }} @if ($errors->has('office_address'))
{{ $errors->first('office_address') }}
@endif
{!! Html::decode(Form::label('blood_group', 'Blood Group')) !!} {!! Form::select('blood_group', $bloodGroups, $family->blood_group ?? null, [ 'class' => 'form-control' . ($errors->has('blood_group') ? ' is-invalid' : ''), 'placeholder' => 'Select Blood Group', ]) !!} @if ($errors->has('blood_group'))
{{ $errors->first('blood_group') }}
@endif
{!! Html::decode(Form::label('health_problem1', 'Health Problem 1')) !!} {!! Form::select('health_problem1', $healthProblems, $family->health_problem1 ?? null, [ 'class' => 'form-control' . ($errors->has('health_problem1') ? ' is-invalid' : ''), 'placeholder' => 'Select Health Problem', ]) !!} @if ($errors->has('health_problem1'))
{{ $errors->first('health_problem1') }}
@endif
{!! Html::decode(Form::label('health_problem2', 'Health Problem 2')) !!} {!! Form::select('health_problem2', $healthProblems, $family->health_problem2 ?? null, [ 'class' => 'form-control' . ($errors->has('health_problem2') ? ' is-invalid' : ''), 'placeholder' => 'Select Health Problem', ]) !!} @if ($errors->has('health_problem2'))
{{ $errors->first('health_problem2') }}
@endif
@if (isset($family)) @include('families.leaflet-map', [ 'lat' => $family->latitude, 'lng' => $family->longitude, ]) @else @include('families.leaflet-map') @endif {{--
{{ Form::checkbox('copy', 1, null, ['class' => 'form-check-input', 'id' => 'copy']) }} {{ Form::label('copy', 'Copy ?', ['class' => 'form-check-label']) }}
--}}
{!! Html::decode(Form::label('latitude', 'Latitude')) !!} {{ Form::text('latitude', null, ['class' => 'form-control' . ($errors->has('latitude') ? ' is-invalid' : '')]) }} @if ($errors->has('latitude'))
{{ $errors->first('latitude') }}
@endif
{!! Html::decode(Form::label('longitude', 'Longitude')) !!} {{ Form::text('longitude', null, ['class' => 'form-control' . ($errors->has('longitude') ? ' is-invalid' : '')]) }} @if ($errors->has('longitude'))
{{ $errors->first('longitude') }}
@endif
@isset($family)
{!! Html::decode(Form::label('document_type', 'Document Type')) !!} {!! Form::select('document_type', $documentTypes, $family->document_type ?? null, [ 'class' => 'form-control' . ($errors->has('document_type') ? ' is-invalid' : ''), 'placeholder' => 'Select Document Type', ]) !!} @if ($errors->has('document_type'))
{{ $errors->first('document_type') }}
@endif
{!! Form::label('file', 'File') !!} {!! Form::file('file', ['class' => 'form-control', 'accept' => '.doc,.docx,.pdf,.csv,.xlsx,.xls']) !!}
@if ($errors->has('file'))
{{ $errors->first('file') }}
@endif

Documents List

@include('families.documents-list', ['family' => $family])
@endisset
Photo
@include('partials.image-upload')
{{ $errors->first('photo') }}
{{--
File/Document
{!! Form::label('file', 'File') !!} {!! Form::file('file', ['class' => 'form-control', 'accept' => '.doc,.docx,.pdf,.csv,.xlsx,.xls']) !!}
{{ $errors->first('file') }}
@isset($family->file_url)
Uploaded File : {{isset($family) && $family->document ? $family->document->title : 'N/A'}}
@endisset
--}}
Tags
{!! Form::label('tags', 'Tags') !!} {!! Form::select( 'tags[]', $tags ?? [], isset($family) ? old('tags', $family->tags->pluck('name')->toArray()) : null, ['class' => 'form-control select2', 'multiple' => 'multiple'], ) !!}
{{ $errors->first('tags') }}
Back {!! Form::submit('Save', ['class' => 'btn btn-primary']) !!}
@push('scripts') @endpush