ManageChannels
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
Configure the table settings.
Define the columns for the table.
Define the filters for the table.
Define the validation rules.
Open the modal to edit a channel.
Update the selected channel.
Define the bulk actions available for the table.
Export all data to Excel.
Export filtered data to Excel.
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.
at line 62
array
columns()
Define the columns for the table.
at line 87
array
filters()
Define the filters for the table.
at line 97
protected array<string,string>
rules()
Define the validation rules.
at line 111
void
editChannel(int|string $id)
Open the modal to edit a channel.
at line 125
void
updateChannel()
Update the selected channel.
Validates the input and saves the changes to the database.
at line 138
array
options()
Define the bulk actions available for the table.
at line 152
BinaryFileResponse
export_all()
Export all data to Excel.
at line 163
BinaryFileResponse
export_filtered()
Export filtered data to Excel.
at line 174
BinaryFileResponse|void
export_selected()
Export selected rows to Excel.