feat: Hide the customer column from admin users in the orders table.
This commit is contained in:
parent
7035c3888d
commit
e28b5fee69
@ -32,7 +32,8 @@ public function columns(): array
|
||||
$query->where('full_name', 'like', "%{$searchTerm}%");
|
||||
});
|
||||
});
|
||||
}),
|
||||
})
|
||||
->hideIf(auth()->user()->hasRole('Admin')),
|
||||
|
||||
Column::make('Nomor Invoice')
|
||||
->label(function ($row) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user