@if(isset($karyawan)) {!! Form::hidden('id', $karyawan->id) !!} @endif @if($errors->any())
@else
@endif {!! Form::label('nip', 'NIP', ['class'=>'control-label']) !!} {!! Form::text('nip', null, ['class'=> 'form-control']) !!} @if($errors->any()) {{ $errors->first('nip') }} @endif
@if($errors->any())
@else
@endif {!! Form::label('nama', 'Nama', ['class'=>'control-label']) !!} {!! Form::text('nama', null, ['class'=> 'form-control']) !!} @if($errors->any()) {{ $errors->first('nama') }} @endif
@if($errors->any())
@else
@endif {!! Form::label('tgl_lahir', 'Tanggal Lahir', ['class'=>'control-label']) !!} {!! Form::date('tgl_lahir', null, ['class'=> 'form-control']) !!} @if($errors->any()) {{ $errors->first('tgl_lahir') }} @endif
@if($errors->any())
@else
@endif {!! Form::label('gender', 'Jenis Kelamin', ['class'=>'control-label']) !!}
@if($errors->any()) {{ $errors->first('gender') }} @endif
@if($errors->any())
@else
@endif {!! Form::label('foto', 'Foto', ['class'=>'control-label']) !!} {!! Form::file('foto') !!} @if(isset($karyawan)) {!! Form::hidden('foto_lama', $karyawan->foto) !!} @endif @if($errors->has('foto')) {{ $errors->first('foto') }} @endif
{!! Form::submit($submitButton, ['class' => 'btn btn-primary form-control']) !!}