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.

create.blade.php 5.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 | Petugas UDD</h6>
  10. <h2 class="mb-0">Tambah Petugas UDD</h2>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="card-body">
  15. <form action="{{ route($route.'create_action') }}" class="form-global-handle" method="POST" enctype="multipart/form-data">
  16. @csrf
  17. <div class="form-group">
  18. <label for="RoleName">Name <span class="text-danger">*</span></label>
  19. <input type="text" name="nama" required class="form-control" id="RoleName" placeholder="Contoh : Zaenal">
  20. </div>
  21. <div class="form-group">
  22. <label for="RoleName">Email <span class="text-danger">*</span></label>
  23. <input type="text" name="email" required class="form-control" id="RoleName" placeholder="Contoh : sidoni@mail.com">
  24. </div>
  25. <div class="form-group">
  26. <label for="password">Password <span class="text-danger">*</span></label>
  27. <input type="password" name="password" required class="form-control" id="password" placeholder="*******">
  28. <div>
  29. <small>Minimal adalah 6 karakter</small>
  30. </div>
  31. </div>
  32. <div class="row">
  33. <div class="col-lg-6">
  34. @if (!empty($udds))
  35. <div class="form-group">
  36. <label> List UDD <span class="text-danger">*</span> </label>
  37. @foreach ($udds as $key => $value)
  38. <div class="card mr-2 my-2 p-3">
  39. @foreach ($value as $key_value => $value_udd)
  40. <div class="custom-control custom-control-alternative custom-radio mb-3">
  41. <input class="custom-control-input" name="unit_donor_darah_id" value="{{ $value_udd->id }}" required id="udd{{$key.$key_value}}" type="radio">
  42. <label class="custom-control-label" for="udd{{$key.$key_value}}">{{ $value_udd->nama }}</label>
  43. </div>
  44. @endforeach
  45. </div>
  46. @endforeach
  47. </div>
  48. @endif
  49. </div>
  50. <div class="col-lg-6">
  51. <div class="form-group">
  52. <label> List Role <span class="text-danger">*</span></label>
  53. @foreach ($roles as $key => $value)
  54. <div class="card mr-2 my-2 p-3">
  55. @foreach ($value as $key_value => $value_role)
  56. <div class="custom-control custom-control-alternative custom-checkbox mb-3">
  57. <input class="custom-control-input" name="role_id[]" value="{{ $value_role->id }}" id="role{{$key.$key_value}}" type="checkbox">
  58. <label class="custom-control-label" for="role{{$key.$key_value}}">{{ $value_role->name }}</label>
  59. </div>
  60. @endforeach
  61. </div>
  62. @endforeach
  63. </div>
  64. </div>
  65. </div>
  66. <div class="group">
  67. <button type="submit" class="btn btn-success">Simpan</button>
  68. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  69. </div>
  70. </form>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. @endsection
  76. {{-- load JS yang lu perluin, selain itu no --}}
  77. @push('js')
  78. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  79. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  80. <script src="{{ asset('assets') }}/js/custom.js"></script>
  81. @endpush