create.blade.php 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @extends('helpers.modals.createModal')
  2. @section('createModalForm')
  3. <form method="POST" action="{{ route('createUser') }}" enctype="multipart/form-data">
  4. @csrf
  5. <div class="modal-body">
  6. <div class="row">
  7. <div class="position-relative form-group col-md-6">
  8. <label for="name" class="importantField">Name</label>
  9. <input name="name" id="create_name" placeholder="Enter a name" type="text" class="form-control" required>
  10. </div>
  11. <div class="position-relative form-group col-md-6">
  12. <label for="email" class="importantField">Email</label>
  13. <input name="email" id="create_email" placeholder="Enter a email" type="email" class="form-control" required>
  14. </div>
  15. <div class="position-relative form-group col-md-6">
  16. <label for="password" class="importantField">Password</label>
  17. <input name="password" id="create_password" placeholder="Enter a password" type="password" class="form-control" required>
  18. </div>
  19. <div class="position-relative form-group col-md-6">
  20. <label for="role_id" class="importantField">Role</label>
  21. <select name="role_id" id="create_role_id" class="form-control" required>
  22. <option value="" selected disabled>Enter a Role</option>
  23. @foreach(\App\Model\Privillage\Role::all() as $key => $value)
  24. <option value="{{$value->id}}">{{$value->role_name}}</option>
  25. @endforeach
  26. </select>
  27. </div>
  28. <div class="position-relative form-group col-md-6">
  29. <label for="userType" class="importantField">User Type</label>
  30. <select id="userType" name="userType" class="form-control" required>
  31. <option value="" selected disabled>Enter a type</option>
  32. <option value="user">User</option>
  33. <option value="upt">UPT</option>
  34. <option value="waba">Waba</option>
  35. </select>
  36. </div>
  37. <div class="position-relative form-group col-md-6 div-type-code">
  38. <label for="typeCode" id="labeltypeCode" class="importantField">Select User Type First</label>
  39. <select name="typeCode" id="typeCode" class="form-control selectData">
  40. <option value="" selected disabled>Enter a sub type</option>
  41. </select>
  42. </div>
  43. <div class="position-relative form-group col-md-6">
  44. <label for="profile_photo" class="optionalField">Profile Photo</label>
  45. <input name="profile_photo" id="create_profile_photo" type="file" class="form-control-file" accept="image/*" onchange="document.getElementById('PhotoProfilePreview').src = window.URL.createObjectURL(this.files[0])">
  46. </div>
  47. <div class="position-relative form-group col-md-6">
  48. <label for="profile_photo" class="optionalField">Preview Photo</label>
  49. <br>
  50. <img style="border-radius: 50%;" id="PhotoProfilePreview" src="{{ route ('userLoginImages','default.jpg')}}" width="150" height="150">
  51. </div>
  52. </div>
  53. </div>
  54. <div class="modal-footer">
  55. @include('helpers.button.buttonClose')
  56. @include('helpers.button.buttonSave')
  57. </div>
  58. </form>
  59. @endsection