Menu

## States extends Component
in package
uses WithPagination

States.php : 23

Class States

Livewire component responsible for managing and displaying the list of states in the Admin Settings section.

Features:

- Search states by state name
- Search states by related country name
- Paginated state listing

### Table of Contents

#### Properties

$search : string
  Search keyword used to filter states and related country names.

#### Methods

render() : View
  Render the Livewire component view.
updatedSearch() : void
  Livewire hook triggered when the search property is updated.

### Properties

#### $search

States.php : 33

Search keyword used to filter states and related country names.

`public string $search = ''`

### Methods

#### render()

States.php : 44

Render the Livewire component view.

`public render() : View`

Builds the state query with optional search filters and returns paginated results to the Blade view.

##### Return values

View

#### updatedSearch()

States.php : 72

Livewire hook triggered when the search property is updated.

`public updatedSearch() : void`

Resets pagination to the first page whenever the search keyword changes.

## Search results