├── .phpunit.result.cache
├── .styleci.yml
├── CHANGELOG.md
├── CONTRIBUTING.md
├── LICENSE.md
├── README.md
├── composer.json
├── config
└── livewire-datatables.php
├── migration_to_v2.md
├── resources
├── images
│ └── screenshot.png
└── views
│ ├── .DS_Store
│ ├── github.blade.php
│ ├── icons
│ ├── arrow-circle-left.blade.php
│ ├── arrow-left.blade.php
│ ├── arrow-right.blade.php
│ ├── check-circle.blade.php
│ ├── chevron-down.blade.php
│ ├── chevron-up.blade.php
│ ├── cog.blade.php
│ ├── copy.blade.php
│ ├── excel.blade.php
│ ├── trash.blade.php
│ └── x-circle.blade.php
│ └── livewire
│ └── datatables
│ ├── boolean.blade.php
│ ├── checkbox.blade.php
│ ├── complex-query-group.blade.php
│ ├── complex-query-rule.blade.php
│ ├── complex-query.blade.php
│ ├── datatable.blade.php
│ ├── delete.blade.php
│ ├── editable.blade.php
│ ├── filters
│ ├── boolean.blade.php
│ ├── checkbox.blade.php
│ ├── date.blade.php
│ ├── datetime.blade.php
│ ├── editable.blade.php
│ ├── number.blade.php
│ ├── select.blade.php
│ ├── string.blade.php
│ └── time.blade.php
│ ├── header-inline-hide.blade.php
│ ├── header-no-hide.blade.php
│ ├── hide-column-multiselect.blade.php
│ ├── highlight.blade.php
│ ├── label.blade.php
│ ├── link.blade.php
│ ├── style-width.blade.php
│ ├── tailwind-pagination.blade.php
│ ├── tailwind-simple-pagination.blade.php
│ └── tooltip.blade.php
└── src
├── .DS_Store
├── Action.php
├── BooleanColumn.php
├── Column.php
├── ColumnSet.php
├── Commands
├── ComponentParser.php
├── DatatableMakeCommand.php
├── MakeDatatableCommand.php
├── datatable-model.stub
└── datatable.stub
├── DateColumn.php
├── DatetimeColumn.php
├── Exports
└── DatatableExport.php
├── Http
└── Controllers
│ └── FileExportController.php
├── JsonColumn.php
├── LabelColumn.php
├── Livewire
├── ComplexQuery.php
└── LivewireDatatable.php
├── LivewireDatatablesServiceProvider.php
├── NumberColumn.php
├── TimeColumn.php
└── Traits
├── CanExport.php
├── CanPinRecords.php
├── WithCallbacks.php
├── WithPresetDateFilters.php
└── WithPresetTimeFilters.php
/.phpunit.result.cache:
--------------------------------------------------------------------------------
1 | {"version":1,"defects":{"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_column":3,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_raw":3,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_returns_width_property_from_column":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #0":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #1":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #2":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #3":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #4":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #5":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #6":3,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #7":3,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_delete_column":4,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #2":4,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_column":7,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_raw":7,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_returns_width_property_from_column":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_mount_using_the_class":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_set_a_default_sort":4,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_show_and_hide_a_column":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_order_results":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_text":8,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_boolean":8,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_strings_as_a_boolean":8,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_selects":8,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_numbers":8,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_base_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_one_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_a_has_one_column":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_many_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_many_relation_column_with_specific_aggregate":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_has_many_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_belongs_to_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_belongs_to_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_belongs_to_many_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a__where_query_for_belongs_to_many_relation_columns":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mount_from_the_default_template_with_a_model":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::the_header_can_be_hidden_with_a_property":4,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::the_pagination_bar_can_be_hidden_with_a_property":4,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_set_per_page_with_a_property":4,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_include_columns_from_a_property":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_exclude_columns_from_a_property":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_hide_columns_from_a_property":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mark_columns_for_date_format_from_a_property":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mark_columns_for_time_format_from_a_property":7,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_set_sort_from_a_property":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::component_is_created_by_make_command":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::dot_nested_component_is_created_by_make_command":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::forward_slash_nested_component_is_created_by_make_command":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::multiword_component_is_created_by_make_command":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::pascal_case_component_is_automatically_converted_by_make_command":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::snake_case_component_is_automatically_converted_by_make_command":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::snake_case_component_is_automatically_converted_by_make_command_on_nested_component":7,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::new_component_model_name_matches_option":7,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#0":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#1":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#2":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#3":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#4":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#5":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#6":8,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#7":8},"times":{"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_generate_an_array_of_columns_from_a_model":0.127,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #0":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #1":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #2":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #3":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #4":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #5":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #6":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #7":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_exclude_columns":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_include_columns":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_rename_columns":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_column_from_a_table_column":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_column_from_a_scope":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_delete_column":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #0":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #1":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #2":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #3":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #4":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_column":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_raw":0.012,"Mediconesystems\\LivewireDatatables\\Tests\\ColumnTest::it_returns_width_property_from_column":0.011,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_mount_using_the_class":0.054,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_set_a_default_sort":0.019,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_show_and_hide_a_column":0.039,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_order_results":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_text":0.026,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_boolean":0.026,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_strings_as_a_boolean":0.029,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_selects":0.025,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_numbers":0.059,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_base_columns":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_one_relation_columns":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_a_has_one_column":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_many_relation_columns":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_many_relation_column_with_specific_aggregate":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_has_many_relation_columns":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_belongs_to_relation_columns":0.018,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_belongs_to_relation_columns":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_belongs_to_many_relation_columns":0.016,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a__where_query_for_belongs_to_many_relation_columns":0.013,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mount_from_the_default_template_with_a_model":0.017,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::the_header_can_be_hidden_with_a_property":0.016,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::the_pagination_bar_can_be_hidden_with_a_property":0.016,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_set_per_page_with_a_property":0.023,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_include_columns_from_a_property":0.016,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_exclude_columns_from_a_property":0.017,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_hide_columns_from_a_property":0.021,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mark_columns_for_date_format_from_a_property":0.017,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mark_columns_for_time_format_from_a_property":0.018,"Mediconesystems\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_set_sort_from_a_property":0.018,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::component_is_created_by_make_command":0.017,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::dot_nested_component_is_created_by_make_command":0.019,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::forward_slash_nested_component_is_created_by_make_command":0.016,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::multiword_component_is_created_by_make_command":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::pascal_case_component_is_automatically_converted_by_make_command":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::snake_case_component_is_automatically_converted_by_make_command":0.017,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::snake_case_component_is_automatically_converted_by_make_command_on_nested_component":0.018,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::new_component_model_name_matches_option":0.014,"Mediconesystems\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::a_component_is_not_created_with_a_reserved_class_name":0.013,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_generate_an_array_of_columns_from_a_model":0.031,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #0":0.026,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #1":0.025,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #2":0.025,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #3":0.025,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #4":0.025,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #5":0.025,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #6":0.025,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model with data set #7":0.03,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_exclude_columns":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_include_columns":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_rename_columns":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_column_from_a_table_column":0.006,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_column_from_a_scope":0.006,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_can_generate_a_delete_column":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #0":0.024,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #1":0.024,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #2":0.024,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #3":0.024,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters with data set #4":0.024,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_column":0.013,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_returns_an_array_from_raw":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_returns_width_property_from_column":0.007,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_mount_using_the_class":0.085,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_set_a_default_sort":0.036,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_show_and_hide_a_column":0.037,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_order_results":0.042,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_text":0.071,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_boolean":0.068,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_strings_as_a_boolean":0.066,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_selects":0.069,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableClassTest::it_can_filter_results_based_on_numbers":0.107,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_base_columns":0.01,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_one_relation_columns":0.011,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_a_has_one_column":0.012,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_many_relation_columns":0.01,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_has_many_relation_column_with_specific_aggregate":0.011,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_has_many_relation_columns":0.012,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_belongs_to_relation_columns":0.01,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_where_query_for_belongs_to_relation_columns":0.012,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a_query_builder_for_belongs_to_many_relation_columns":0.012,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableQueryBuilderTest::it_creates_a__where_query_for_belongs_to_many_relation_columns":0.011,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mount_from_the_default_template_with_a_model":0.037,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::the_header_can_be_hidden_with_a_property":0.036,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::the_pagination_bar_can_be_hidden_with_a_property":0.032,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_set_per_page_with_a_property":0.342,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_include_columns_from_a_property":0.027,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_exclude_columns_from_a_property":0.035,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_hide_columns_from_a_property":0.036,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mark_columns_for_date_format_from_a_property":0.037,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_mark_columns_for_time_format_from_a_property":0.038,"Arm092\\LivewireDatatables\\Tests\\LivewireDatatableTemplateTest::it_can_set_sort_from_a_property":0.036,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::component_is_created_by_make_command":0.011,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::dot_nested_component_is_created_by_make_command":0.011,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::forward_slash_nested_component_is_created_by_make_command":0.013,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::multiword_component_is_created_by_make_command":0.01,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::pascal_case_component_is_automatically_converted_by_make_command":0.012,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::snake_case_component_is_automatically_converted_by_make_command":0.011,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::snake_case_component_is_automatically_converted_by_make_command_on_nested_component":0.012,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::new_component_model_name_matches_option":0.012,"Arm092\\LivewireDatatables\\Tests\\MakeDatatableCommandTest::a_component_is_not_created_with_a_reserved_class_name":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#0":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#1":0.006,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#2":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#3":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#4":0.011,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#5":0.011,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#6":0.01,"Arm092\\LivewireDatatables\\Tests\\ColumnSetTest::it_can_correctly_populate_the_columns_from_the_model#7":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters#0":0.005,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters#1":0.005,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters#2":0.007,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters#3":0.006,"Arm092\\LivewireDatatables\\Tests\\ColumnTest::it_sets_properties_and_parameters#4":0.005}}
--------------------------------------------------------------------------------
/.styleci.yml:
--------------------------------------------------------------------------------
1 | preset: laravel
2 |
3 | enabled:
4 | - concat_with_spaces
5 |
6 | disabled:
7 | - concat_without_spaces
8 | - single_class_element_per_statement
9 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | All notable changes to `livewire-datatables` will be documented in this file
4 |
5 | ## 1.0.0 - 201X-XX-XX ( to be released in the future... )
6 |
7 | - initial release
8 |
9 | ## 0.9.0 ( 2022-03-22 )
10 |
11 | - Breaking Change: 'unsortable' has been renamed to 'sortable', which is more intuitive. Please adjust your overwritten views, if any (thyseus).
12 |
13 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | Contributions are **welcome** and will be fully **credited**.
4 |
5 | Please read and understand the contribution guide before creating an issue or pull request.
6 |
7 | ## Etiquette
8 |
9 | This project is open source, and as such, the maintainers give their free time to build and maintain the source code
10 | held within. They make the code freely available in the hope that it will be of use to other developers. It would be
11 | extremely unfair for them to suffer abuse or anger for their hard work.
12 |
13 | Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the
14 | world that developers are civilized and selfless people.
15 |
16 | It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
17 | quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
18 |
19 | ## Viability
20 |
21 | When requesting or submitting new features, first consider whether it might be useful to others. Open
22 | source projects are used by many developers, who may have entirely different needs to your own. Think about
23 | whether or not your feature is likely to be used by other users of the project.
24 |
25 | ## Procedure
26 |
27 | Before filing an issue:
28 |
29 | - Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
30 | - Check to make sure your feature suggestion isn't already present within the project.
31 | - Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
32 | - Check the pull requests tab to ensure that the feature isn't already in progress.
33 |
34 | Before submitting a pull request:
35 |
36 | - Check the codebase to ensure that your feature doesn't already exist.
37 | - Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
38 |
39 | ## Requirements
40 |
41 | If the project maintainer has any additional requirements, you will find them listed here.
42 |
43 | - **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer).
44 |
45 | - **Add tests!** - Your patch won't be accepted if it doesn't have tests.
46 |
47 | - **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
48 |
49 | - **Consider our release cycle** - We try to follow [SemVer v2.0.0](https://semver.org/). Randomly breaking public APIs is not an option.
50 |
51 | - **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
52 |
53 | - **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](https://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
54 |
55 | **Happy coding**!
56 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) Mark Salmon
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Livewire Datatables
2 |
3 | [](https://packagist.org/packages/arm092/livewire-datatables)
4 | [](https://packagist.org/packages/arm092/livewire-datatables)
5 |
6 | ### Features
7 | - Use a model or query builder to supply data
8 | - Mutate and format columns using preset or custom callbacks
9 | - Sort data using column or computed column
10 | - Filter using booleans, times, dates, selects or free text
11 | - Create complex combined filters using the [complex query builder](#complex-query-builder)
12 | - Show / hide columns
13 | - Column groups
14 | - Mass Action (Bulk) Support
15 |
16 | ## [Live Demo App](https://livewire-datatables.com)
17 |
18 | ## [Demo App Repo](https://github.com/MedicOneSystems/demo-livewire-datatables)
19 |
20 | 
21 |
22 | ## Requirements
23 | - [Laravel 10|11|12](https://laravel.com/docs/11.x)
24 | - [Livewire 3](https://laravel-livewire.com/)
25 | - [Tailwind](https://tailwindcss.com/)
26 | - [Alpine JS](https://github.com/alpinejs/alpine)
27 |
28 | ## Installation
29 |
30 | You can install the package via composer:
31 |
32 | ```bash
33 | composer require arm092/livewire-datatables
34 | ```
35 |
36 | ### Optional
37 | You don't need to, but if you like you can publish the config file and blade template assets:
38 | ```bash
39 | php artisan vendor:publish --provider="Arm092\LivewireDatatables\LivewireDatatablesServiceProvider"
40 | ```
41 | This will enable you to modify the blade views and apply your own styling, the datatables views will be published to resources/livewire/datatables. The config file contains the default time and date formats used throughout
42 | > - This can be useful if you're using Purge CSS on your project, to make sure all the livewire-datatables classes get included
43 |
44 | Several of the built-in dynamic components use Alpine JS, so to remove flickers on page load, make sure you have
45 | ```css
46 | [x-cloak] {
47 | display: none;
48 | }
49 | ```
50 | somewhere in your CSS
51 |
52 | ## Basic Usage
53 |
54 | - Use the ```livewire-datatable``` component in your blade view, and pass in a model:
55 | ```html
56 | ...
57 |
58 |
59 |
60 | ...
61 | ```
62 |
63 | ## Template Syntax
64 | - There are many ways to modify the table by passing additional properties into the component:
65 | ```html
66 |
72 | ```
73 |
74 | *Attention*: Please note that having multiple datatables on the same page _or_ more than one datatable of the same
75 | type on different pages needs to have a unique `name` attribute assigned to each one so they do not conflict with each
76 | other as in the example above.
77 |
78 | ### Props
79 | | Property | Arguments | Result | Example |
80 | |---------------------|----|------------------------------------------------------------------------------------------------------------------------------------------------|----|
81 | | **model** |*String* full model name| Define the base model for the table | ```model="App\Post"```|
82 | | **include** |*String\| Array* of column definitions |specify columns to be shown in table, label can be specified by using \| delimter | ```include="name, email, dob\|Birth Date, role"```|
83 | | **exclude** |*String\| Array* of column definitions |columns are excluded from table| ```:exclude="['created_at', 'updated_at']"```|
84 | | **hide** |*String\| Array* of column definitions |columns are present, but start hidden|```hidden="email_verified_at"```|
85 | | **dates** |*String\| Array* of column definitions [ and optional format in \ | delimited string]|column values are formatted as per the default date format, or format can be included in string with \| separator | ```:dates="['dob\|lS F y', 'created_at']"```|
86 | | **times** |*String\| Array* of column definitions [optional format in \ | delimited string]|column values are formatted as per the default time format, or format can be included in string with \| separator | ```'bedtime\|g:i A'```|
87 | | **searchable** |*String\| Array* of column names | Defines columns to be included in global search | ```searchable="name, email"```|
88 | | **sortIndex** |*String* of column definition [and optional 'asc' or 'desc' (default: 'desc') in \| delimited string] |Specifies the column and direction for initial table sort. Default is column 0 descending | ```sort="name\|asc"```|
89 | | **hide-header** |*Boolean* default: *false*| The top row of the table including the column titles is removed if this is ```true``` | |
90 | | **hide-pagination** |*Boolean* default: *false*| Pagination controls are removed if this is ```true``` | |
91 | | **per-page** |*Integer* default: 10| Number of rows per page | ```per-page="20"``` |
92 | | **exportable** |*Boolean* default: *false*| Allows table to be exported | `````` |
93 | | **hideable** | _String_ | gives ability to show/hide columns, accepts strings 'inline', 'buttons', or 'select' | `````` |
94 | | **buttonsSlot** | _String_ | blade view to be included immediately after the buttons at the top of the table in the component, which can therefore access public properties | |
95 | | **beforeTableSlot** | _String_ | blade view to be included immediately before the table in the component, which can therefore access public properties | |
96 | | **afterTableSlot** | _String_ | blade view to be included immediately after the table in the component, which can therefore access public properties | [demo](https://livewire-datatables.com/complex) |
97 | ---
98 |
99 |
100 | ## Component Syntax
101 |
102 | ### Create a livewire component that extends ```Arm092\LivewireDatatables\LivewireDatatable```
103 | > ```php artisan make:livewire-datatable foo``` --> 'app/Livewire/Datatables/Foo.php'
104 |
105 | > ```php artisan make:livewire-datatable foo.bar``` --> 'app/Livewire/Datatables/Foo/Bar.php'
106 |
107 | ### Provide a datasource by declaring public property ```$model``` **OR** public method ```builder()``` that returns an instance of ```Illuminate\Database\Eloquent\Builder```
108 | > ```php artisan make:livewire-datatable users-table --model=user``` --> 'app/Livewire/Datatables/UsersTable.php' with ```public $model = User::class```
109 |
110 | ### Declare a public method ```columns``` that returns an array containing one or more ```Arm092\LivewireDatatables\Column```
111 |
112 | ## Columns
113 | Columns can be built using any of the static methods below, and then their attributes assigned using fluent method chains.
114 | There are additional specific types of Column; ```NumberColumn```, ```DateColumn```, ```TimeColumn```, using the correct one for your datatype will enable type-specific formatting and filtering:
115 |
116 | | Class | Description |
117 | |---|---|
118 | |Column|Generic string-based column. Filter will be a text input|
119 | |NumberColumn| Number-based column. Filters will be a numeric range|
120 | |BooleanColumn| Values will be automatically formatted to a yes/no icon, filters will be yes/no|
121 | |DateColumn| Values will be automatically formatted to the default date format. Filters will be a date range|
122 | |TimeColumn| Values will be automatically formatted to the default time format. Filters will be a time range|
123 | |LabelColumn| Fixed header string ("label") with fixed content string in every row. No SQL is executed at all|
124 | ___
125 |
126 | ```php
127 |
128 | use Arm092\LivewireDatatables\Column;
129 | use Illuminate\Database\Eloquent\Model;
130 | use Illuminate\Database\Eloquent\Builder;
131 | use Arm092\LivewireDatatables\DateColumn;
132 | use Arm092\LivewireDatatables\LabelColumn;
133 | use Arm092\LivewireDatatables\NumberColumn;
134 | use Arm092\LivewireDatatables\BooleanColumn;
135 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
136 |
137 | class ComplexDemoTable extends LivewireDatatable
138 | {
139 |
140 | public function builder(): Builder
141 | {
142 | return User::query();
143 | }
144 |
145 | public function getColumns(): array|Model
146 | {
147 | return [
148 | NumberColumn::name('id')
149 | ->label('ID')
150 | ->linkTo('job', 6),
151 |
152 | BooleanColumn::name('email_verified_at')
153 | ->label('Email Verified')
154 | ->format()
155 | ->filterable(),
156 |
157 | Column::name('name')
158 | ->defaultSort('asc')
159 | ->group('group1')
160 | ->searchable()
161 | ->hideable()
162 | ->filterable(),
163 |
164 | Column::name('planet.name')
165 | ->label('Planet')
166 | ->group('group1')
167 | ->searchable()
168 | ->hideable()
169 | ->filterable($this->planets),
170 |
171 | // Column that counts every line from 1 upwards, independent of content
172 | Column::index($this);
173 |
174 | DateColumn::name('dob')
175 | ->label('DOB')
176 | ->group('group2')
177 | ->filterable()
178 | ->hide(),
179 |
180 | (new LabelColumn())
181 | ->label('My custom heading')
182 | ->content('This fixed string appears in every row'),
183 |
184 | NumberColumn::name('dollars_spent')
185 | ->format(2, '.', ',') // 2 decimal places, comma for thousands, dot for decimal
186 | ->enableSummary(),
187 | ];
188 | }
189 | }
190 | ```
191 |
192 | ### Column Methods
193 | | Method | Arguments | Result | Example |
194 | |----|----|----|----|
195 | |_static_ **name**| *String* $column |Builds a column from column definition, which can be eith Eloquent or SQL dot notation (see below) |```Column::name('name')```|
196 | |_static_ **raw**| *String* $rawSqlStatement|Builds a column from raw SQL statement. Must include "... AS _alias_"|```Column::raw("CONCAT(ROUND(DATEDIFF(NOW(), users.dob) / planets.orbital_period, 1) AS `Native Age`")```|
197 | |_static_ **callback**|*Array\|String* $columns, *Closure\|String* $callback| Passes the columns from the first argument into the callback to allow custom mutations. The callback can be a method on the table class, or inline | _(see below)_|
198 | |_static_ **scope**|*String* $scope, *String* $alias|Builds a column from a scope on the parent model|```Column::scope('selectLastLogin', 'Last Login')```|
199 | |_static_ **delete**|[*String* $primaryKey default: 'id']|Adds a column with a delete button, which will call ```$this->model::destroy($primaryKey)```|```Column::delete()```|
200 | |_static_ **checkbox**|[*String* $column default: 'id']|Adds a column with a checkbox. The component public property ```$selected``` will contain an array of the named column from checked rows, |```Column::checkbox()```|
201 | |**label**|*String* $name|Changes the display name of a column|```Column::name('id')->label('ID)```|
202 | |**group**|*String* $group|Assign the column to a group. Allows to toggle the visibility of all columns of a group at once|```Column::name('id')->group('my-group')```|
203 | |**format**|[*String* $format]|Formats the column value according to type. Dates/times will use the default format or the argument |```Column::name('email_verified_at')->filterable(),```|
204 | |**hide**| |Marks column to start as hidden|```Column::name('id')->hidden()```|
205 | |**sortBy**|*String\|Expression* $column|Changes the query by which the column is sorted|```Column::name('dob')->sortBy('DATE_FORMAT(users.dob, "%m%d%Y")'),```|
206 | |**truncate**|[*Integer* $length (default: 16)]Truncates column to $length and provides full-text in a tooltip. Uses ```view('livewire-datatables::tooltip)```|```Column::name('biography)->truncate(30)```|
207 | |**linkTo**|*String* $model, [*Integer* $pad]|Replaces the value with a link to ```"/$model/$value"```. Useful for ID columns. Optional zero-padding. Uses ```view('livewire-datatables::link)```|```Column::name('id')->linkTo('user')```|
208 | |**link**|*String* $href, [*String* $slot]|Let the content of the column render as a link. You may use {{ }} syntax to fill the url with any attributes of the current row. Uses ```view('livewire-datatables::link)```|```Column::name('first_name')->link('/users/{{slug}}/edit', 'edit {{first_name}} {{last_name}}')```|
209 | |**round**|[*Integer* $precision (default: 0)]|Rounds value to given precision|```Column::name('age')->round()```|
210 | |**defaultSort**|[*String* $direction (default: 'desc')]|Marks the column as the default search column|```Column::name('name')->defaultSort('asc')```|
211 | |**searchable**| |Includes the column in the global search|```Column::name('name')->searchable()```|
212 | |**hideable**| |The user is able to toggle the visibility of this column|```Column::name('name')->hideable()```|
213 | |**filterable**|[*Array* $options], [*String* $filterScope]|Adds a filter to the column, according to Column type. If an array of options is passed it wil be used to populate a select input. If the column is a scope column then the name of the filter scope must also be passed|```Column::name('allegiance')->filterable(['Rebellion', 'Empire'])```|
214 | |**unwrap**| | Prevents the content of the column from being wrapped in multiple lines |```Column::name('oneliner')->unwrap()```|
215 | |**filterOn**|*String/Array* $statement|Allows you to specify a column name or sql statement upon which to perform the filter (must use SQL syntax, not Eloquent eg. ```'users.name'``` instead of ```'user.name'```). Useful if using a callback to modify the displayed values. Can pass a single string or array of strings which will be combined with ```OR```|```Column::callback(['name', 'allegiance'], function ($name, $allegiance) { return "$name is allied to $allegiance"; })->filterable(['Rebellion', 'Empire'])->filterOn('users.allegiance')```|
216 | |**view**|*String* $viewName| Passes the column value, whole row of values, and any additional parameters to a view template | _(see below)_|
217 | |**editable**| | Marks the column as editable | _(see below)_|
218 | |**alignCenter**| | Center-aligns column header _and_ contents |```Column::delete()->alignCenter()```|
219 | |**alignRight**| | Right-aligns column header _and_ contents |```Column::delete()->alignRight()```|
220 | |**contentAlignCenter**| | Center-aligns column contents |```Column::delete()->contentAlignCenter()```|
221 | |**contentAlignRight**| | Right-aligns column contents |```Column::delete()->contentAlignRight()```|
222 | |**headerAlignCenter**| | Center-aligns column header |```Column::delete()->headerAlignCenter()```|
223 | |**headerAlignRight**| | Right-aligns column header |```Column::delete()->headerAlignRight()```|
224 | |**editable**| | Marks the column as editable | _(see below)_|
225 | |**exportCallback**| Closure $callback | Reformats the result when exporting | _(see below)_ |
226 | |**excludeFromExport**| | Excludes the column from export |```Column::name('email')->excludeFromExport()```|
227 | |**unsortable**| | Prevents the column being sortable |```Column::name('email')->unsortable()```|
228 | ___
229 |
230 | ### Listener
231 | The component will listen for the ```refreshLivewireDatatable``` event, which allows you to refresh the table from external components.
232 |
233 | ### Eloquent Column Names
234 | Columns from Eloquent relations can be included using the normal eloquent dot notation, eg. ```planet.name```, Livewire Datatables will automatically add the necessary table joins to include the column. If the relationship is of a 'many' type (```HasMany```, ```BelongsToMany```, ```HasManyThrough```) then Livewire Datatables will create an aggregated subquery (which is much more efficient than a join and group. Thanks [@reinink](https://eloquent-course.reinink.ca/)). By default, the aggregate type will be ```count``` for a numeric column and ```group_concat``` for a string column, but this can be over-ridden using a colon delimeter;
235 |
236 | ```php
237 | NumberColumn::name('students.age:sum')->label('Student Sum'),
238 |
239 | NumberColumn::name('students.age:avg')->label('Student Avg'),
240 |
241 | NumberColumn::name('students.age:min')->label('Student Min'),
242 |
243 | NumberColumn::name('students.age:max')->label('Student Max'),
244 | ```
245 |
246 | ### Column Groups
247 |
248 | When you have a very big table with a lot of columns, it is possible to create 'column groups' that allows the user to toggle the visibility of a whole group at once. Use `->group('NAME')` at any column to achieve this.
249 | You can human-readable labels and translations of your groups via the `groupLabels` property of your table:
250 |
251 | ```php
252 |
253 | use Arm092\LivewireDatatables\Column;
254 | use Illuminate\Database\Eloquent\Model;
255 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
256 |
257 | class GroupDemoTable extends LivewireDatatable
258 | {
259 | public array $groupLabels = [
260 | 'group1' => 'app.translation_for_group_1',
261 | 'group2' => 'app.translation_for_group_2',
262 | ];
263 |
264 | public function getColumns(): array|Model
265 | {
266 | return [
267 | Column::name('planets.name')
268 | ->group('group1')
269 | ->label('Planet'),
270 |
271 | Column::name('planets.name')
272 | ->group('group2')
273 | ->label('Planet'),
274 | ```
275 |
276 | ### Summary row
277 | If you need to summarize all cells of a specific column, you can use `enableSummary()`:
278 |
279 | ```php
280 | public function getColumns(): array|Model
281 | {
282 | return [
283 | Column::name('dollars_spent')
284 | ->label('Expenses in Dollar')
285 | ->enableSummary(),
286 |
287 | Column::name('euro_spent')
288 | ->label('Expenses in Euro')
289 | ->enableSummary(),
290 | ```
291 |
292 | ### Mass (Bulk) Action
293 |
294 | If you want to be able to act upon several records at once, you can use the `buildActions()` method in your Table:
295 |
296 | ```php
297 | public function buildActions(): array
298 | {
299 | return [
300 |
301 | Action::value('edit')->label('Edit Selected')->group('Default Options')->callback(function ($mode, $items) {
302 | // $items contains an array with the primary keys of the selected items
303 | }),
304 |
305 | Action::value('update')->label('Update Selected')->group('Default Options')->callback(function ($mode, $items) {
306 | // $items contains an array with the primary keys of the selected items
307 | }),
308 |
309 | Action::groupBy('Export Options', function () {
310 | return [
311 | Action::value('csv')->label('Export CSV')->export('SalesOrders.csv'),
312 | Action::value('html')->label('Export HTML')->export('SalesOrders.html'),
313 | Action::value('xlsx')->label('Export XLSX')->export('SalesOrders.xlsx')->styles($this->exportStyles)->widths($this->exportWidths)
314 | ];
315 | }),
316 | ];
317 | }
318 | ```
319 |
320 | ### Mass Action Style
321 |
322 | If you only have small style adjustments to the Bulk Action Dropdown you can adjust some settings here:
323 |
324 | ```php
325 | public function getExportStylesProperty(): array
326 | {
327 | return [
328 | '1' => ['font' => ['bold' => true]],
329 | 'B2' => ['font' => ['italic' => true]],
330 | 'C' => ['font' => ['size' => 16]],
331 | ];
332 | }
333 |
334 | public function getExportWidthsProperty(): array
335 | {
336 | return [
337 | 'A' => 55,
338 | 'B' => 45,
339 | ];
340 | }
341 | ```
342 |
343 | ### Pin Records
344 |
345 | If you want to give your users the ability to pin specific records to be able to, for example, compare
346 | them with each other, you can use the CanPinRecords trait. Ensure to have at least one Checkbox Column
347 | so the user can select records:
348 |
349 | ```php
350 |
351 | use Arm092\LivewireDatatables\Column;
352 | use Illuminate\Database\Eloquent\Model;
353 | use Arm092\LivewireDatatables\Traits\CanPinRecords;
354 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
355 |
356 | class RecordTable extends LivewireDatatable
357 | {
358 | use CanPinRecords;
359 |
360 | public string|null|Model $model = Record::class;
361 |
362 | public function getColumns(): array|Model
363 | {
364 | return [
365 | Column::checkbox(),
366 |
367 | // ...
368 |
369 | ```
370 |
371 | ### Custom column names
372 | It is still possible to take full control over your table, you can define a ```builder``` method using whatever query you like, using your own joins, groups whatever, and then name your columns using your normal SQL syntax:
373 |
374 | ```php
375 |
376 | public function builder(): Builder
377 | {
378 | return User::query()
379 | ->leftJoin('planets', 'planets.id', 'users.planet_id')
380 | ->leftJoin('moons', 'moons.id', 'planets.moon_id')
381 | ->groupBy('users.id');
382 | }
383 |
384 | public function getColumns(): array|Model
385 | {
386 | return [
387 | NumberColumn::name('id')
388 | ->filterable(),
389 |
390 | Column::name('planets.name')
391 | ->label('Planet'),
392 |
393 | Column::raw('GROUP_CONCAT(planets.name SEPARATOR " | ") AS `Moon`')
394 | ->setCallback(static fn($value) => strtolower($value))
395 |
396 | ...
397 | }
398 |
399 | ```
400 |
401 | ### Callbacks
402 | Callbacks give you the freedom to perform any mutations you like on the data before displaying in the table.
403 | - The callbacks are performed on the paginated results of the database query, so shouldn't use a ton of memory
404 | - Callbacks will receive the chosen columns as their arguments.
405 | - Callbacks can be defined inline as below, or as public methods on the Datatable class, referenced by passing the name as a string as the second argument to the callback method.
406 | - If you want to format the result differently for export, use ```->exportCallback(Closure $callback)```.
407 | ```php
408 |
409 | use Arm092\LivewireDatatables\Column;
410 | use Illuminate\Database\Eloquent\Model;
411 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
412 |
413 | class CallbackDemoTable extends LivewireDatatable
414 | {
415 | public string|null|Model $model = User::class
416 |
417 | public function getColumns(): array|Model
418 | {
419 | return [
420 | Column::name('users.id'),
421 |
422 | Column::name('users.dob')->format(),
423 |
424 | Column::callback(['dob', 'signup_date'], function ($dob, $signupDate) {
425 | $age = $signupDate->diffInYears($dob);
426 | return $age > 18
427 | ? '' . $age . ''
428 | : $age;
429 | })->exportCallback(function ($dob, $signupDate), {
430 | return $age = $signupDate->diffInYears($dob);
431 | }),
432 |
433 | ...
434 | }
435 | }
436 | ```
437 |
438 | ### Default Filters
439 |
440 | If you want to have a default filter applied to your table, you can use the `defaultFilters` property. The `defaultFilter` should be an Array of column names and the default filter value to use for. When a persisted filter (`$this->persistFilters` is true and session values are available) is available, it will override the default filters.
441 |
442 | In the example below, the table will by default be filtered by rows where the _deleted_at_ column is false. If the user has a persisted filter for the _deleted_at_ column, the default filter will be ignored.
443 |
444 | ```php
445 |
446 | use Arm092\LivewireDatatables\Column;
447 | use Illuminate\Database\Eloquent\Model;
448 | use Illuminate\Database\Eloquent\Builder;
449 | use Arm092\LivewireDatatables\BooleanColumn;
450 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
451 |
452 | class CallbackDemoTable extends LivewireDatatable
453 | {
454 | public array $defaultFilters = [
455 | 'deleted_at' => '0',
456 | ];
457 |
458 | public function builder(): Builder
459 | {
460 | return User::query()->withTrashed();
461 | }
462 |
463 | public function getColumns(): array|Model
464 | {
465 | return [
466 | Column::name('id'),
467 | BooleanColumn::name('deleted_at')->filterable(),
468 | ];
469 | }
470 | }
471 | ```
472 |
473 | ### Views
474 | You can specify that a column's output is piped directly into a separate blade view template.
475 | - Template is specified using ususal laravel view helper syntax
476 | - Views will receive the column's value as ```$value```, and the whole query row as ```$row```
477 | ```php
478 |
479 | use Arm092\LivewireDatatables\Column;
480 | use Illuminate\Database\Eloquent\Model;
481 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
482 |
483 | class CallbackDemoTable extends LivewireDatatable
484 | {
485 | public string|null|Model $model = User::class
486 |
487 | public function getColumns(): array|Model
488 | {
489 | return [
490 | Column::name('users.id'),
491 |
492 | Column::name('users.dob')->view('tables.dateview'),
493 |
494 | Column::name('users.signup_date')->format(),
495 | ];
496 | }
497 | ```
498 | ```html
499 | 'tables/dateview.blade.php'
500 |
501 |
502 |
503 | ```
504 |
505 | ### Editable Columns
506 | You can mark a column as editable using ```editable```
507 | This uses the ```view()``` method above to pass the data into an Alpine/Livewire compnent that can directly update the underlying database data. Requires the column to have ```column``` defined using standard Laravel naming. This is included as an example. Much more comprehensive custom editable columns with validation etc can be built using the callback or view methods above.
508 |
509 | ```php
510 |
511 | use Arm092\LivewireDatatables\Column;
512 | use Illuminate\Database\Eloquent\Model;
513 | use Arm092\LivewireDatatables\Livewire\LivewireDatatable;
514 |
515 | class EditableTable extends LivewireDatatable
516 | {
517 | public string|null|Model $model = User::class;
518 |
519 | public function getColumns(): array|Model
520 | {
521 | return [
522 | Column::name('id')
523 | ->label('ID')
524 | ->linkTo('job', 6),
525 |
526 | Column::name('email')
527 | ->editable(),
528 |
529 | ...
530 | ];
531 | }
532 | }
533 | ```
534 |
535 | # Complex Query Builder
536 | Just add ```$complex = true``` to your Datatable Class and all filterable columns will be available in the complex query builder.
537 |
538 | **Features**
539 | - Combine rules and groups of rules using AND/OR logic
540 | - Drag and drop rules around the interface
541 |
542 | 
543 | ---
544 | **Persisting Queries** (Requires AlpineJS v3 with $persist plugin)
545 | - Add ```$persistComplexQuery = true``` to your class and queries will be stored in browser localstorage.
546 | - By default, the localstorage key will be the class name. You can provide your own by setting the public property ```$persistKey``` or overriding ```getPersistKeyProperty()``` on the Datatable Class
547 | - eg: for user-specific persistence:
548 |
549 | ```php
550 | public function getPersistKeyProperty()
551 | {
552 | return Auth::id() . '-' . parent::getPersistKeyProperty();
553 | }
554 | ```
555 | ---
556 | **Saving Queries**
557 |
558 | If you want to permanently save queries you must provide 3 methods for adding, deleting and retrieving your saved queries using whatever logic you like:
559 |
560 | - ```public function saveQuery(string $name, array $rules)```
561 | - ```public function deleteQuery(int $id)```
562 | - ```public function getSavedQueries()```
563 |
564 | * In your save and delete methods, be sure to dispatch an ```updateSavedQueries``` livewire event and pass a fresh array of results (see example below)
565 |
566 | ### Example:
567 | This example shows saving queries using a conventional Laravel ComplexQuery model, that belongsTo a User
568 |
569 | ```php
570 | /* Migration */
571 |
572 | use Illuminate\Database\Migrations\Migration;
573 | use Illuminate\Database\Schema\Blueprint;
574 | use Illuminate\Support\Facades\Schema;
575 |
576 | return new class extends Migration
577 | {
578 | public function up()
579 | {
580 | Schema::create('complex_queries', static function (Blueprint $table) {
581 | $table->id();
582 | $table->unsignedInteger('user_id');
583 | $table->string('table');
584 | $table->json('rules');
585 | $table->string('name');
586 | $table->timestamps();
587 | });
588 | }
589 |
590 | public function down(): void
591 | {
592 | Schema::dropIfExists('complex_queries');
593 | }
594 | };
595 |
596 |
597 | /* Model */
598 |
599 | class ComplexQuery extends Model
600 | {
601 | protected $casts = ['rules' => 'array'];
602 |
603 | public function user()
604 | {
605 | return $this->belongsTo(User::class);
606 | }
607 | }
608 |
609 | /* Datatable Class */
610 |
611 | class TableWithSaving extends LivewireDatatable
612 | {
613 | ...
614 |
615 | public function saveQuery($name, $rules): void
616 | {
617 | Auth::user()->complex_queries()->create([
618 | 'table' => $this->name,
619 | 'name' => $name,
620 | 'rules' => $rules
621 | ]);
622 |
623 | $this->dispatch('updateSavedQueries', $this->getSavedQueries());
624 | }
625 |
626 | public function deleteQuery($id): void
627 | {
628 | ComplexQuery::destroy($id);
629 |
630 | $this->dispatch('updateSavedQueries', $this->getSavedQueries());
631 | }
632 |
633 | public function getSavedQueries(): void
634 | {
635 | return Auth::user()->complex_queries()->where('table', $this->name)->get();
636 | }
637 |
638 | ...
639 | }
640 | ```
641 |
642 |
643 | # Styling
644 | I know it's not cool to provide a package with tons of opionated markup and styling. Most other packages seem to have gone down the route of passing optional classes around as arguments or config variables. My take is that because this is just blade with tailwind, you can publish the templates and do whatever you like to them - it should be obvious where the Livewire and Alpine moving parts are.
645 |
646 | There are methods for applying styles to rows and cells. ```rowClasses``` receives the ```$row``` and the [laravel loop variable](https://laravel.com/docs/8.x/blade#the-loop-variable) as parameters. ```cellClasses``` receives the ```$row``` and ```$column```
647 |
648 | For example:
649 | ```php
650 | public function rowClasses($row, $loop): string
651 | {
652 | return 'divide-x divide-gray-100 text-sm text-gray-900 ' . ($this->rowIsSelected($row) ? 'bg-yellow-100' : ($row->{'car.model'} === 'Ferrari' ? 'bg-red-500' : ($loop->even ? 'bg-gray-100' : 'bg-gray-50')));
653 | }
654 |
655 | public function cellClasses($row, $column): string
656 | {
657 | return 'text-sm ' . ($this->rowIsSelected($row) ? ' text-gray-900' : ($row->{'car.model'} === 'Ferrari' ? ' text-white' : ' text-gray-900'));
658 | }
659 | ```
660 |
661 | You can change the default CSS classes applied by the ```rowClasses``` and the ```cellClasses``` methods by changing ```default_classes``` in the ```livewire-datatables.php``` config file.
662 |
663 | You could also override the render method in your table's class to provide different templates for different tables.
664 |
665 |
666 | ## Credits and Influences
667 | - [Laravel](https://laravel.com/)
668 | - [Laravel Livewire](https://laravel-livewire.com/docs/quickstart/)
669 | - [Tailwind CSS](https://tailwindcss.com/)
670 | - [AlpineJS](https://github.com/alpinejs/alpine)
671 | - [livewire-datatables by MedicOneSystems](https://github.com/MedicOneSystems/livewire-datatables)
672 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "arm092/livewire-datatables",
3 | "description": "Advanced datatables using Laravel, Livewire, Tailwind CSS and Alpine JS",
4 | "keywords": [
5 | "php",
6 | "laravel",
7 | "livewire",
8 | "datatables",
9 | "tall"
10 | ],
11 | "homepage": "https://github.com/arm092/livewire-datatables",
12 | "license": "MIT",
13 | "type": "library",
14 | "authors": [
15 | {
16 | "name": "Mark Salmon",
17 | "email": "mark.salmon@mediconesystems.com",
18 | "role": "Developer"
19 | },
20 | {
21 | "name": "Shane Burrell",
22 | "email": "shane@shaneburrell.com",
23 | "role": "Developer"
24 | },
25 | {
26 | "name": "Herbert Maschke",
27 | "email": "thyseus@pm.me",
28 | "role": "Developer"
29 | },
30 | {
31 | "name": "Arman Khachatryan",
32 | "email": "arman.khachatryan@apricode.am",
33 | "role": "Developer"
34 | }
35 | ],
36 | "require": {
37 | "php": "^8.1",
38 | "illuminate/support": "^10.0|^11.0|^12.0",
39 | "livewire/livewire": "^3.6",
40 | "maatwebsite/excel": "^3.1.64",
41 | "psr/simple-cache": "^3.0.0",
42 | "reedware/laravel-relation-joins": "^7.0|^8.0"
43 | },
44 | "require-dev": {
45 | "laravel/legacy-factories": "^1.4.1",
46 | "orchestra/testbench": "^8.0|^9.0|^10.0",
47 | "phpunit/phpunit": "^11.0"
48 | },
49 | "autoload": {
50 | "psr-4": {
51 | "Arm092\\LivewireDatatables\\": "src"
52 | }
53 | },
54 | "autoload-dev": {
55 | "psr-4": {
56 | "Arm092\\LivewireDatatables\\Tests\\": "tests"
57 | }
58 | },
59 | "scripts": {
60 | "test": "vendor/bin/phpunit",
61 | "test-coverage": "vendor/bin/phpunit --coverage-html coverage"
62 | },
63 | "config": {
64 | "sort-packages": true
65 | },
66 | "extra": {
67 | "laravel": {
68 | "providers": [
69 | "Arm092\\LivewireDatatables\\LivewireDatatablesServiceProvider"
70 | ],
71 | "aliases": {
72 | "LivewireDatatables": "Arm092\\LivewireDatatables\\LivewireDatatablesFacade"
73 | }
74 | }
75 | },
76 | "minimum-stability": "dev",
77 | "prefer-stable": true
78 | }
79 |
--------------------------------------------------------------------------------
/config/livewire-datatables.php:
--------------------------------------------------------------------------------
1 | 'H:i',
15 | 'default_date_format' => 'd/m/Y',
16 | 'default_datetime_format' => 'd/m/Y H:i',
17 |
18 | /*
19 | |--------------------------------------------------------------------------
20 | | Default Carbon Formats
21 | |--------------------------------------------------------------------------
22 | | The default formats that are used for TimeColumn & DateColumn.
23 | | You can use the formatting characters from the PHP DateTime class.
24 | | More info: https://www.php.net/manual/en/datetime.format.php
25 | |
26 | */
27 |
28 | 'default_time_start' => '0000-00-00',
29 | 'default_time_end' => '9999-12-31',
30 |
31 | // Defaults that work with smalldatetime in SQL Server
32 | // 'default_time_start' => '1900-01-01',
33 | // 'default_time_end' => '2079-06-06',
34 |
35 | /*
36 | |--------------------------------------------------------------------------
37 | | Surpress Search Highlights
38 | |--------------------------------------------------------------------------
39 | | When enabled, matching text won't be highlighted in the search results
40 | | while searching.
41 | |
42 | */
43 |
44 | 'suppress_search_highlights' => false,
45 |
46 | /*
47 | |--------------------------------------------------------------------------
48 | | Per Page Options
49 | |--------------------------------------------------------------------------
50 | | Sets the options to choose from in the `Per Page`dropdown.
51 | |
52 | */
53 |
54 | 'per_page_options' => [10, 25, 50, 100],
55 |
56 | /*
57 | |--------------------------------------------------------------------------
58 | | Default Per Page
59 | |--------------------------------------------------------------------------
60 | | Sets the default amount of rows to display per page.
61 | |
62 | */
63 |
64 | 'default_per_page' => 10,
65 |
66 | /*
67 | |--------------------------------------------------------------------------
68 | | Model Namespace
69 | |--------------------------------------------------------------------------
70 | | Sets the default namespace to be used when generating a new Datatables
71 | | component.
72 | |
73 | */
74 |
75 | 'model_namespace' => 'App',
76 |
77 | /*
78 | |--------------------------------------------------------------------------
79 | | Default Sortable
80 | |--------------------------------------------------------------------------
81 | | Should a column of a datatable be sortable by default ?
82 | |
83 | */
84 |
85 | 'default_sortable' => true,
86 |
87 | /*
88 | |--------------------------------------------------------------------------
89 | | Default CSS classes
90 | |--------------------------------------------------------------------------
91 | |
92 | | Sets the default classes that will be applied to each row and class
93 | | if the rowClasses() and cellClasses() functions are not overrided.
94 | |
95 | */
96 |
97 | 'default_classes' => [
98 | 'row' => [
99 | 'even' => 'divide-x divide-gray-100 text-sm text-gray-900 bg-gray-100',
100 | 'odd' => 'divide-x divide-gray-100 text-sm text-gray-900 bg-gray-50',
101 | 'selected' => 'divide-x divide-gray-100 text-sm text-gray-900 bg-yellow-100',
102 | ],
103 | 'cell' => 'whitespace-no-wrap text-sm text-gray-900 px-6 py-2',
104 | ],
105 | ];
106 |
--------------------------------------------------------------------------------
/migration_to_v2.md:
--------------------------------------------------------------------------------
1 | # Livewire Datatables Migrate Guide from 1st to 2nd version
2 |
3 | ### Impact Changes
4 | - Changed vendor's namespace from ```MedicOneSystems``` to ```Arm092```
5 | - Changed default directory of data-tables from ```app/Http/Livewire``` to ```app/Livewire/Datatables```
6 | - Added return types of most methods, if you have overwritten them, you may need to add the return type to your method
7 | - Defined types of most properties, if you have overwritten them, you may need to add the type to your property
8 | - In LivewireDatatable class some methods names changed because there were properties with the same name, so the method names were changed to avoid conflicts
9 | - As mentioned in previous point, `columns` method renamed to `getColumns` (most used)
10 | - View files need to be republished, if you have published ones
11 | - Also defined types of most properties of Column classes, if you have overwritten them, you may need to add the type to your property
12 | - Dropped support of `"illuminate/support"` under version 9.0
13 | - Minimal PHP version is 8.1 now
14 | - Minimal Laravel version is 9.0 now
15 | - Minimal Livewire version is 3.0 now
16 |
17 | If you have livewire 2 on your project, you need to upgrade it too. You can find the upgrade guide [here](https://livewire.laravel.com/docs/upgrading).
18 | Change `"livewire/livewire"` to version `"^3.0.0"`, `"arm092/livewire-datatables"` to version `"^2.0.0"` and run `composer update` command.
19 | After it, you can run `php artisan livewire:upgrade` command to upgrade your livewire components as mentioned in livewire migrate guide.
20 |
21 | #### If you have any problems with package, please open an issue on [github](https://github.com/arm092/livewire-datatables/issues)
22 |
--------------------------------------------------------------------------------
/resources/images/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arm092/livewire-datatables/58ee0aaf2af0cf5352d4beaf92e05436508ca1ed/resources/images/screenshot.png
--------------------------------------------------------------------------------
/resources/views/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/arm092/livewire-datatables/58ee0aaf2af0cf5352d4beaf92e05436508ca1ed/resources/views/.DS_Store
--------------------------------------------------------------------------------
/resources/views/github.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/icons/arrow-circle-left.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/icons/arrow-left.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/arrow-right.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/check-circle.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/chevron-down.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/chevron-up.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/cog.blade.php:
--------------------------------------------------------------------------------
1 |
5 |
--------------------------------------------------------------------------------
/resources/views/icons/copy.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/excel.blade.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/resources/views/icons/trash.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/icons/x-circle.blade.php:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/resources/views/livewire/datatables/boolean.blade.php:
--------------------------------------------------------------------------------
1 |