@extends('admin.layout.app') @section('title','Edit Employee Family Detail') @section('content')

Edit Employee Family Detail

{!! Form::open(['route'=>array('employee-family-detail.update', $employee_family->id), 'onsubmit'=>'BtnSubmit.disabled = true','method' => 'put', 'files'=>true]) !!}
{!! Form::select("employee_id", [$employee_family->employee_id=>$employee_family->employee->name], old("employee_id"), ['class'=>'form-control', 'required', 'id'=>'employee_id'] ) !!}
{{$errors->first() ? 'Employee family detail already exists':''}}
{{$errors->first('mother_name')}}
{{$errors->first('father_name')}}
{!! Form::select("marital_status", [''=>'Select','single'=>'Single', 'married'=>'Married', 'widowed'=>'Widowed', 'divorced'=>'Divorced', 'separated'=>'Separated'], old("marital_status", $employee_family->marital_status), ['class'=>'form-control', 'required', 'id'=>'marital_status'] ) !!}
{{$errors->first('marital_status')}}
{{$errors->first('family_photo')}}
{!! Form::close() !!}
@endsection @push('footerscript') @endpush