Global component slots
A global component with a reserved name is rendered in its place automatically. Register it inwindow.crudadmin.components, see Registering components. Without the component, the default content stays.
AppLogo
Replaces the logo at the top of the sidebar. The logo keeps its link to the dashboard. The default logo is passed in the default slot, so the component can wrap it instead of replacing it. The slot holds two elements:.logo__wrapper.--default with the full logo and .logo__wrapper.--small with the logo of the collapsed sidebar.
resources/js/components/AppLogo.vue
logo.
RightNavbarSlot
Rendered in the right part of the top navbar, before the admin links, the language switcher and the user menu. It receives the signed-in administrator in theuser prop and is rendered only for a signed-in administrator.
resources/js/components/RightNavbarSlot.vue
Dashboard
The dashboard page shows thedashboard configuration: the name of a global Vue component or a Blade file. Without it, resources/views/admin/dashboard.blade.php is rendered when it exists, otherwise the welcome message with the statistics.
Blade slots
Two empty Blade views of the admin are included in every page of a signed-in administrator. Override them inresources/views/vendor/admin/slots.
resources/views/vendor/admin/slots/meta.blade.php
Model layout positions
A model places its own components with the$layouts property, keyed by the position. Each component receives the model, the opened row and the loaded rows props.
app/Models/Order.php
Page
Module header
The bar above the table with the search, the filter and the buttons on the right. It is not shown for a single model.Table
The column with the records. It is hidden while only the form is shown.Form
The column with the form. It is shown while a row is opened or created.
A form opened in a modal keeps the positions inside the form, from
form-header-left to form-footer. form-before and form-after belong to the form column of the page and are not shown in the modal.