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())
- <div class="form-group {{ $errors->has('foto') ? 'has-error' : 'has-success'}}">
- @else
- < div class="form-group">
- @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'))
- <span class="help-block">{{ $errors->first('foto') }}</span>
- @endif
- </div>
- @if($errors->any())
- <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->any())
- <span class="help-block">{{ $errors->first('nip') }}</span>
- @endif
- </div>
- @if($errors->any())
- <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->any())
- <span class="help-block">{{ $errors->first('nama') }}</span>
- @endif
- </div>
- @if($errors->any())
- <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::date('tgl_lahir', null, ['class'=> 'form-control']) !!}
- @if($errors->any())
- <span class="help-block">{{ $errors->first('tgl_lahir') }}</span>
- @endif
- </div>
- @if($errors->any())
- <div class="form-group {{ $errors->has('gender') ? 'has-error' : 'has-success' }}">
- @else
- <div class="form-group">
- @endif
- {!! 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>
- @if($errors->any())
- <span class="help-block">{{ $errors->first('gender') }}</span>
- @endif
- </div>
- </div>
- <div class="form-group">
- {!! Form::submit($submitButton, ['class' => 'btn btn-primary form-control']) !!}
- </div>
Advertisement
Add Comment
Please, Sign In to add comment