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 4.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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">Add User Management</h6>
  10. <h2 class="mb-0">Tambah Pengguna Rumah Sakit</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="nama">Nama Rumah Sakit <span class="text-danger">*</span></label>
  19. <input type="text" name="nama" required class="form-control cek-email"{{ old('nama') }} id="nama" placeholder="Contoh : Rumah Sakit Sidoni">
  20. </div>
  21. <div class="form-group">
  22. <label for="kode_rumah_sakit">Kode Rumah Sakit <span class="text-danger">*</span></label>
  23. <input type="text" name="kode_rumah_sakit" required class="form-control cek-email"{{ old('kode_rumah_sakit') }} id="kode_rumah_sakit" placeholder="Contoh : 1x">
  24. </div>
  25. <div class="form-group">
  26. <label for="email">Email <span class="text-danger">*</span></label>
  27. <input type="email" name="email" required class="form-control cek_email" data-route="{{ route('cek_email') }}" id="email" placeholder="Contoh : sidoni@mail.com">
  28. <div class="email-notification"></div>
  29. </div>
  30. <div class="form-group">
  31. <label for="password">Password <span class="text-danger">*</span></label>
  32. <input type="password" name="password" required class="form-control" id="password" placeholder="******">
  33. </div>
  34. <div class="form-group">
  35. <label for="nama_bank_darah">Nama Bank Darah <span class="text-danger">*</span></label>
  36. <input type="nama_bank_darah" required name="nama_bank_darah" {{ old('nama_bank_darah') }} class="form-control" id="nama_bank_darah" placeholder="Contoh : Bank Darah Doni">
  37. </div>
  38. <div class="form-group">
  39. <label for="deskripsi">Deskripsi <span class="text-danger">*</span></label>
  40. <textarea name="deskripsi" required class="form-control" {{ old('deskripsi') }} id="deskripsi" rows="5" value="Deskripsi"></textarea>
  41. </div>
  42. <div class="form-group">
  43. <label for="alamat">Alamat <span class="text-danger">*</span></label>
  44. <textarea name="alamat" required class="form-control" {{ old('alamat') }} id="alamat" rows="5" value="alamat"></textarea>
  45. </div>
  46. <div class="form-group">
  47. <label> List Role <span class="text-danger">*</span></label>
  48. <div class="row">
  49. @foreach ($roles as $key => $value)
  50. <div class="col-lg-12">
  51. <div class="custom-control custom-control-alternative custom-checkbox mb-3">
  52. <input class="custom-control-input" name="role_id[]" value="{{ $value->id }}"{{ old('role_id') }} id="customCheck{{$key}}" type="checkbox">
  53. <label class="custom-control-label" for="customCheck{{$key}}">{{ $value->name }}</label>
  54. </div>
  55. </div>
  56. @endforeach
  57. </div>
  58. </div>
  59. <div class="group">
  60. <button type="submit" class="btn btn-success">Simpan</button>
  61. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  62. </div>
  63. </form>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. @endsection
  69. {{-- load JS yang lu perluin, selain itu no --}}
  70. @push('js')
  71. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  72. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  73. <script src="{{ asset('assets') }}/js/custom.js"></script>
  74. @endpush