No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.blade.php 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('admin.layouts.app')
  2. @section('content')
  3. <div class="row px-5">
  4. <div class="col-xl-12">
  5. <div class="card shadow">
  6. <div class="card-header bg-transparent">
  7. <div class="row align-items-center">
  8. <div class="col">
  9. <h6 class="text-uppercase text-muted ls-1 mb-1">User Management - Khusus untuk Super Admin</h6>
  10. <h2 class="mb-0">Edit User</h2>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="card-body">
  15. <form action="{{ route($route.'update_action') }}" class="form-global-handle" method="POST" enctype="multipart/form-data">
  16. @csrf
  17. <input type="hidden" name="id" value="{{ Hashids::encode($data->id) }}">
  18. <div class="form-group">
  19. <label for="RoleName">Username</label>
  20. <input type="text" name="name" required class="form-control" value="{{ $data->name }}" id="RoleName" placeholder="Contoh : Admin">
  21. </div>
  22. <div class="form-group">
  23. <label for="RoleName">Email</label>
  24. <input type="text" name="email" required class="form-control cek_email" data-id="{{ Hashids::encode($data->id) }}" data-route="{{ route('cek_email') }}" value="{{ $data->email }}" id="RoleName" placeholder="Contoh : sidoni@mail.com">
  25. </div>
  26. <div class="form-group">
  27. <label for="password">Password</label>
  28. <input type="password" name="password" class="form-control" id="password" placeholder="*******">
  29. <div>
  30. <small>Minimal adalah 6 karakter</small>
  31. </div>
  32. </div>
  33. <div class="group">
  34. <button type="submit" class="btn btn-success">Simpan</button>
  35. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  36. </div>
  37. </form>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. @endsection
  43. {{-- load JS yang lu perluin, selain itu no --}}
  44. @push('js')
  45. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  46. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  47. <script src="{{ asset('assets') }}/js/custom.js"></script>
  48. @endpush