diff --git a/app/Http/Livewire/UserTable.php b/app/Http/Livewire/UserTable.php index b7d9f93..bd5b998 100644 --- a/app/Http/Livewire/UserTable.php +++ b/app/Http/Livewire/UserTable.php @@ -23,6 +23,10 @@ class UserTable extends DataTableComponent public function columns(): array { return [ + Column::make("", "id") + ->format(function ($value, $row, Column $column) { + return view('components.table-components.select', ['user' => $row]); + }), Column::make(__('messages.ID'), "id") ->sortable() ->searchable(), diff --git a/resources/views/components/table-components/select.blade.php b/resources/views/components/table-components/select.blade.php new file mode 100644 index 0000000..d969230 --- /dev/null +++ b/resources/views/components/table-components/select.blade.php @@ -0,0 +1,7 @@ +@if($user->id == 1) + +@else +