class ManageChannels extends YATBaseTable

Livewire component to manage Alert Channels.

This component provides a table view of available alert channels with editing capabilities. It uses the Beartropy Tables package for rendering and filtering.

Properties

string $tableName

The name of the table displayed

string $model

The model class associated with the table

AlertChannel|null $selectedChannel

The currently selected channel for editing

bool $openEditChannelModal

Whether the edit modal is open

string $channelName

The name of the channel being edited

Methods

void
settings()

Configure the table settings.

array
columns()

Define the columns for the table.

array
filters()

Define the filters for the table.

array<string,string>
rules()

Define the validation rules.

void
editChannel(int|string $id)

Open the modal to edit a channel.

void
updateChannel()

Update the selected channel.

array
options()

Define the bulk actions available for the table.

BinaryFileResponse
export_all()

Export all data to Excel.

BinaryFileResponse
export_filtered()

Export filtered data to Excel.

BinaryFileResponse|void
export_selected()

Export selected rows to Excel.

Details

at line 48
void settings()

Configure the table settings.

Sets the table name, title, layout, modal views, and other table-specific configurations.

Return Value

void

at line 62
array columns()

Define the columns for the table.

Return Value

array

at line 87
array filters()

Define the filters for the table.

Return Value

array

at line 97
protected array<string,string> rules()

Define the validation rules.

Return Value

array<string,string>

at line 111
void editChannel(int|string $id)

Open the modal to edit a channel.

Parameters

int|string $id

The ID of the channel to edit

Return Value

void

at line 125
void updateChannel()

Update the selected channel.

Validates the input and saves the changes to the database.

Return Value

void

at line 138
array options()

Define the bulk actions available for the table.

Return Value

array

at line 152
BinaryFileResponse export_all()

Export all data to Excel.

Return Value

BinaryFileResponse

at line 163
BinaryFileResponse export_filtered()

Export filtered data to Excel.

Return Value

BinaryFileResponse

at line 174
BinaryFileResponse|void export_selected()

Export selected rows to Excel.

Return Value

BinaryFileResponse|void