refactor(user): mengubah title pengguna menjadi pegawai
This commit is contained in:
parent
b9a61ee3eb
commit
a7aca53da2
@ -22,7 +22,7 @@ class UserController extends Controller
|
|||||||
public function index(): View
|
public function index(): View
|
||||||
{
|
{
|
||||||
return view('pages.admin.master.user.index', [
|
return view('pages.admin.master.user.index', [
|
||||||
'pageTitle' => 'Pengguna',
|
'pageTitle' => 'Pegawai',
|
||||||
'users' => User::with(['biography', 'attachments'])
|
'users' => User::with(['biography', 'attachments'])
|
||||||
->barbershop()
|
->barbershop()
|
||||||
->latest()
|
->latest()
|
||||||
@ -33,7 +33,7 @@ public function index(): View
|
|||||||
public function create(): View
|
public function create(): View
|
||||||
{
|
{
|
||||||
return view('pages.admin.master.user.create', [
|
return view('pages.admin.master.user.create', [
|
||||||
'pageTitle' => 'Tambah Pengguna',
|
'pageTitle' => 'Tambah Pegawai',
|
||||||
'roles' => Role::latest()->get(),
|
'roles' => Role::latest()->get(),
|
||||||
'barbershop' => Barbershop::latest()->get(),
|
'barbershop' => Barbershop::latest()->get(),
|
||||||
]);
|
]);
|
||||||
@ -64,7 +64,7 @@ public function store(UserRequest $request): RedirectResponse
|
|||||||
public function edit(User $user): View
|
public function edit(User $user): View
|
||||||
{
|
{
|
||||||
return view('pages.admin.master.user.edit', [
|
return view('pages.admin.master.user.edit', [
|
||||||
'pageTitle' => 'Edit Pengguna',
|
'pageTitle' => 'Edit Pegawai',
|
||||||
'roles' => Role::latest()->get(),
|
'roles' => Role::latest()->get(),
|
||||||
'barbershop' => Barbershop::latest()->get(),
|
'barbershop' => Barbershop::latest()->get(),
|
||||||
'user' => $user,
|
'user' => $user,
|
||||||
|
|||||||
@ -73,7 +73,7 @@
|
|||||||
<i class="fa fa-thumb-tack"></i>
|
<i class="fa fa-thumb-tack"></i>
|
||||||
<a class="sidebar-link sidebar-title link-nav" href="{{ route('master.users') }}">
|
<a class="sidebar-link sidebar-title link-nav" href="{{ route('master.users') }}">
|
||||||
<i data-feather="users"></i>
|
<i data-feather="users"></i>
|
||||||
<span>Pengguna</span>
|
<span>Pegawai</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="sidebar-list">
|
<li class="sidebar-list">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user