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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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">Add Role Management</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">Role Name</label>
  19. <input type="text" name="name" class="form-control" id="RoleName" placeholder="Example : Admin">
  20. </div>
  21. <div class="form-group">
  22. <label> List Permission</label>
  23. <div class="row">
  24. @foreach ($data as $key => $value)
  25. <div class="col-lg-4 ">
  26. <div class="card mr-2 my-2 p-3">
  27. @foreach ($value as $key_value => $value_data)
  28. <div class="custom-control custom-control-alternative custom-checkbox mb-3">
  29. <input class="custom-control-input" name="permission_id[]" value="{{ $value_data->id }}" id="customCheck{{$key.$key_value}}" type="checkbox">
  30. <label class="custom-control-label" for="customCheck{{$key.$key_value}}">{{ $value_data->name }}</label>
  31. </div>
  32. @endforeach
  33. </div>
  34. </div>
  35. @endforeach
  36. </div>
  37. </div>
  38. <div class="group">
  39. <button type="submit" class="btn btn-success">Simpan</button>
  40. <a class="btn btn-default bg-back" href="{{ route($route.'index') }}">Kembali</a>
  41. </div>
  42. </form>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. @endsection
  48. {{-- load JS yang lu perluin, selain itu no --}}
  49. @push('js')
  50. <script src="{{ asset('assets') }}/js/blockUI.js"></script>
  51. <script src="{{ asset('assets') }}/js/sweetalert2.js"></script>
  52. <script src="{{ asset('assets') }}/js/custom.js"></script>
  53. @endpush