Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @if (isset($karyawan))
- {!! Form::hidden('id', $karyawan->id) !!}
- @endif
- @if ($errors->any('nip'))
- <div class="form-group {{ $errors->has('nip') ?
- 'has-error' : 'has-success' }}"
- @else
- <div class="form-group">
- @endif
- {!! Form::label('nip', 'NIP:',
- ['class' => 'control-label']) !!}
- {!! Form::text('nip', null,
- ['class' => 'form-control']) !!}
- @if ($errors->has('nip'))
- <span class="help-block">{{ $errors->first('nip') }}</span>
- @endif
- </div>
- @if ($errors->any('nama'))
- <div class="form-group {{ $errors->has('nama') ?
- 'has-error' : 'has-success' }}"
- @else
- <div class="form-group">
- @endif
- {!! Form::label('nama', 'NAMA:',
- ['class' => 'control-label']) !!}
- {!! Form::text('nama', null,
- ['class' => 'form-control']) !!}
- @if ($errors->has('nama'))
- <span class="help-block">{{ $errors->first('nama') }}</span>
- @endif
- </div>
- @if ($errors->any('tgl_lahir'))
- <div class="form-group {{ $errors->has('tgl_lahir') ?
- 'has-error' : 'has-success' }}"
- @else
- <div class="form-group">
- @endif
- {!! Form::label('tgl_lahir', 'Tanggal lahir:',
- ['class' => 'control-label']) !!}
- {!! Form::text('tgl_lahir', null,
- ['class' => 'form-control']) !!}
- @if ($errors->has('tgl_lahir'))
- <span class="help-block">{{ $errors->first('tgl_lahir') }}</span>
- @endif
- </div>
- <div class="form-group">
- {!! Form::label('gender', 'Jenis Kelamin', ['class'=>'control-label']) !!}
- <div class="radio">
- <label>{!! Form::radio('gender','L') !!}Laki-Laki</label>
- <label>{!! Form::radio('gender','P') !!}Perempuan</label>
- </div>
- @if ($errors->has('gender'))
- <span class="help-block">{{ $errors->first('gender') }}</span>
- @endif
- </div>
- <div class="form-group">
- {!! Form::submit($submitButton, ['class' => 'btn btn-primary form-control']) !!}
- </div>
Add Comment
Please, Sign In to add comment