Advertisement
Guest User

aaa

a guest
Nov 17th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. @extends('layouts.admin.app')
  2.  
  3. <?php
  4. $role='author';
  5. if (Auth::user()->role == $role) {
  6. ?>
  7. @section('content')
  8. <div class="container-fluid">
  9.  
  10. <ol class="breadcrumb">
  11. <li class="breadcrumb-item">
  12. <a href="{{ Route('profile') }}">Profil</a>
  13. </li>
  14. <li class="breadcrumb-item active">Edit</li>
  15. </ol>
  16.  
  17. <div class="card-body">
  18. <div class="form-group">
  19. <label for="name">Nama Lengkap</label>
  20. {!! Form::text('name', null, ['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control', 'required', 'autofocus']) !!}
  21. @if ($errors->has('name'))
  22. <span class="invalid-feedback">
  23. <strong>{{ $errors->first('name') }}</strong>
  24. </span>
  25. @endif
  26. </div>
  27. <div class="form-group">
  28. <label for="email">Email</label>
  29. {!! Form::email('email', null, ['class' => $errors->has('email') ? 'form-control is-invalid' : 'form-control', 'required']) !!}
  30. @if ($errors->has('email'))
  31. <span class="invalid-feedback">
  32. <strong>{{ $errors->first('email') }}</strong>
  33. </span>
  34. @endif
  35. </div>
  36. <div class="form-group">
  37. <label for="npwp">NPWP</label>
  38. {!! Form::text('npwp', null, ['class' => $errors->has('npwp') ? 'form-control is-invalid' : 'form-control', 'autofocus']) !!}
  39. @if ($errors->has('npwp'))
  40. <span class="invalid-feedback">
  41. <strong>{{ $errors->first('npwp') }}</strong>
  42. </span>
  43. @endif
  44. </div>
  45. <div class="form-group">
  46. <label for="alamat">Alamat</label>
  47. {!! Form::text('alamat', null, ['class' => $errors->has('alamat') ? 'form-control is-invalid' : 'form-control', 'autofocus']) !!}
  48. @if ($errors->has('alamat'))
  49. <span class="invalid-feedback">
  50. <strong>{{ $errors->first('alamat') }}</strong>
  51. </span>
  52. @endif
  53. </div>
  54. <div class="form-group">
  55. <label for="password">Password</label>
  56. {!! Form::password('password', ['class' => $errors->has('password') ? 'form-control is-invalid' : 'form-control']) !!}
  57. @if ($errors->has('password'))
  58. <span class="invalid-feedback">
  59. <strong>{{ $errors->first('password') }}</strong>
  60. </span>
  61. @endif
  62. </div>
  63. <div class="form-group">
  64. <label for="role">Role</label>
  65. {!! Form::select('role', ['admin' => 'Admin', 'author' => 'Author'], null, ['class' => $errors->has('role') ? 'form-control is-invalid' : 'form-control', 'required']) !!}
  66. @if ($errors->has('role'))
  67. <span class="invalid-feedback">
  68. <strong>{{ $errors->first('role') }}</strong>
  69. </span>
  70. @endif
  71. </div>
  72. </div>
  73. <div class="card-footer bg-transparent">
  74. <button class="btn btn-primary" type="submit">
  75. Submit
  76. </button>
  77. </div>
  78.  
  79. @section('assets-bottom')
  80. <script src="{{ asset('vendor/unisharp/laravel-filemanager/public/js/lfm.js') }}"></script>
  81. <script>
  82. $(document).ready( function () {
  83. $('#lfm').filemanager('image');
  84. });
  85. </script>
  86. @endsection
  87.  
  88.  
  89. </div>
  90. @endsection
  91. <?php
  92. }
  93. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement