Custom Views

You can override the views used by CRUD - you just have to create the right file in the right place.

Any view inside resources/views/vendor/enso-crud will override the default in resources/views/vendor/enso-crud in the Enso repo.

E.g. to override the Crud index view, create resources/views/vendor/enso-crud/index.blade.php.

For example:

resources
    └ views
        └ vendor
            └ enso-crud
                └ lists
                |   ├ index-actions.blade.php
                |   ├ index-head.blade.php
                |   └ thead.blade.php
                ├ create.blade.php
                ├ edit.blade.php
                └ index.blade.php

Crud Type Specific Views

You can also override views for specific crud types. Create a folder with the correct name in resources/views/vendor/enso-crud.

For example:

resources
    └ views
        └ vendor
            └ enso-crud
                └ {crud_views_dir}
                    ├ lists
                    |   ├ index-actions.blade.php
                    |   ├ index-head.blade.php
                    |   └ thead.blade.php
                    ├ create.blade.php
                    ├ edit.blade.php
                    └ index.blade.php

{crud_views_dir} will be the Crud name in lowercase by default. You can set it yourself using $config->views('some_dir').

Again, this file structure within {crud_views_dir} should match that in the enso repo.