# Entity CRUD Views

Each entity has its own `list.blade.php` entry view under this directory.

Pattern:
- `entities/<entity>/list.blade.php`: entity-specific CRUD page entrypoint used by the controller.
- Optional overrides you can add later in the same folder:
  - `header.blade.php`
  - `table.blade.php`
  - `form-modal.blade.php`
  - `form-fields.blade.php`
  - `recursos-formulario.php`
  - `campos-formulario-pagina.blade.php`
  - `scripts-formulario-pagina.blade.php`
  - `detail-modal.blade.php`
  - `scripts.blade.php`

If an override does not exist, the entity view falls back to the shared partials in `resources/views/administracion/crud/partials/`.

The shared form renderer is now split into:
- `entities/<entity>/recursos-formulario.php`: optional entity-specific flags, placeholders, and column grouping.
- `partials/comun/formulario/recursos.php`: generic fallback resources when an entity does not provide its own definition.
- `partials/comun/formulario/dominios-modal/*.blade.php`: shared modal field layouts.
- `partials/comun/formulario/dominios-pagina/*.blade.php`: shared full-page field layouts.

The shared JavaScript is now split into:
- `partials/comun/scripts/recursos.blade.php`: serialized page data.
- `partials/comun/scripts/base.blade.php`: common CRUD modal behavior.
- `partials/comun/scripts/funcionalidades-modal/*.blade.php`: entity-only modal behaviors that are composed by entity `scripts.blade.php` overrides.
- `partials/comun/scripts/base-formulario-pagina.blade.php`: common full-page form behavior.
- `partials/comun/scripts/funcionalidades-formulario-pagina/*.blade.php`: entity-only full-page form behaviors.

This keeps routes and controller logic stable while allowing each entity to diverge safely when needed.
