fix js roles and add back button on card header

This commit is contained in:
arifal hidayat
2025-02-23 07:08:50 +07:00
parent d49035ce8d
commit c3c7b8e3ec
14 changed files with 252 additions and 233 deletions

View File

@@ -8,8 +8,11 @@
<div class="row d-flex justify-content-center">
<div class="col-md-6">
<div class="card">
<div class="card-header d-flex justify-content-end">
<a href="{{ route('roles.index') }}" class="btn btn-sm btn-secondary">Back</a>
</div>
<div class="card-body">
<form action="{{route("roles.store")}}" method="post" id="formCreateRole" data-redirect="{{route("roles.index")}}">
<form action="{{route("api.roles.store")}}" method="post" id="formCreateRole" data-redirect="{{route("roles.index")}}">
@csrf
<div class="mb-3">
<label class="form-label" for="name">Name</label>