document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. @if(isset($karyawan))
  2. {!! Form::hidden(\'id\',$karyawan->id) !!}
  3. @endif
  4.  
  5. @if($errors->any())
  6. <div class="form-group {{ $errors->has(\'foto\') ?  \'has-error\' : \'has-success\' }}">
  7. @else
  8. <div class="form-group">
  9. @endif
  10.     {!! Form::label(\'foto\', \'Foto\', [\'class\'=>\'control-label\']) !!}
  11.     {!! Form::file(\'foto\') !!}
  12.     @if ($errors->has(\'foto\'))
  13.     <span class="help-block">{{ $errors->first(\'foto\') }}</span>
  14.     @endif
  15. </div>
  16.  
  17. @if($errors->any())
  18. <div class="form-group {{ $errors->has(\'nip\') ?  \'has-error\' : \'has-success\' }}">
  19. @else
  20. <div class="form-group">
  21. @endif
  22.     {!! Form::label(\'nip\', \'NIP\', [\'class\'=>\'control-label\']) !!}
  23.     {!! Form::text(\'nip\', null, [\'class\'=>\'form-control\']) !!}
  24. @if ($errors->has(\'nip\')) <p class="help-block">{{ $errors->first(\'nip\') }}</p> @endif
  25. </div>
  26.  
  27. @if($errors->any())
  28. <div class="form-group {{ $errors->has(\'nama\') ?  \'has-error\' : \'has-success\' }}">
  29. @else
  30. <div class="form-group">
  31. @endif
  32.     {!! Form::label(\'nama\', \'Nama\', [\'class\'=>\'control-label\']) !!}
  33.     {!! Form::text(\'nama\', null, [\'class\'=>\'form-control\']) !!}
  34. @if ($errors->has(\'nama\')) <p class="help-block">{{ $errors->first(\'nama\') }}</p> @endif
  35. </div>
  36.  
  37. @if($errors->any())
  38. <div class="form-group {{ $errors->has(\'tgl_lahir\') ?  \'has-error\' : \'has-success\' }}">
  39. @else
  40. <div class="form-group">
  41. @endif
  42.     {!! Form::label(\'tgl_lahir\', \'Tanggal Lahir\', [\'class\'=>\'control-label\']) !!}
  43.     {!! Form::date(\'tgl_lahir\', null, [\'class\'=>\'form-control\']) !!}
  44. @if ($errors->has(\'tgl_lahir\')) <p class="help-block">{{ $errors->first(\'tgl_lahir\') }}</p> @endif
  45. </div>
  46.  
  47. @if($errors->any())
  48. <div class="form-group {{ $errors->has(\'gender\') ?  \'has-error\' : \'has-success\' }}">
  49. @else
  50. <div class="form-group">
  51. @endif
  52.     {!! Form::label(\'gender\', \'Jenis Kelamin\', [\'class\'=>\'control-label\']) !!}
  53.     <div class="radio">
  54.         <label>{!! Form::radio(\'gender\',\'L\') !!}Laki-Laki</label>
  55.         <label>{!! Form::radio(\'gender\',\'P\') !!}Perempuan</label>
  56.     </div>
  57. @if ($errors->has(\'gender\')) <p class="help-block">{{ $errors->first(\'gender\') }}</p> @endif
  58. </div>
  59. <div class="form-group">
  60.     {!! Form::submit($submitButton, [\'class\' => \'btn btn-primary form-control\']) !!}
  61. </div>
');