class ManageTypes extends YATBaseTable

Livewire component to manage Alert Types.

This component provides a table view of available alert types 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

AlertType|null $selectedType

The currently selected alert type for editing

bool $openEditTypeModal

Whether the edit modal is open

string $typeName

The name of the alert type 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 validation rules.

void
editType(int|string $id)

Open the modal to edit an alert type.

void
updateType()

Update the selected alert type.

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 46
void settings()

Configure the table settings.

Return Value

void

at line 60
array columns()

Define the columns for the table.

Return Value

array

at line 85
array filters()

Define the filters for the table.

Return Value

array

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

Define validation rules.

Return Value

array<string,string>

at line 109
void editType(int|string $id)

Open the modal to edit an alert type.

Parameters

int|string $id

The ID of the alert type to edit

Return Value

void

at line 121
void updateType()

Update the selected alert type.

Return Value

void

at line 134
array options()

Define the bulk actions available for the table.

Return Value

array

at line 148
BinaryFileResponse export_all()

Export all data to Excel.

Return Value

BinaryFileResponse

at line 159
BinaryFileResponse export_filtered()

Export filtered data to Excel.

Return Value

BinaryFileResponse

at line 170
BinaryFileResponse|void export_selected()

Export selected rows to Excel.

Return Value

BinaryFileResponse|void