Preview
No products yetGet started by creating your first product. Products are the items you sell in your store.
Usage
Props
The main heading text for the empty state.
Descriptive text explaining the empty state and what action can be taken.
Text for the call-to-action button. Set to
false to hide the button.Permission name required to show the button. Uses Laravel’s
@can directive.URL for the button link. Use this for navigation to a create page.
Panel name to dispatch an event for opening a slide-over or modal. Alternative to
url.Examples
Basic Empty State
No orders foundWhen customers place orders, they will appear here.
With URL Action
With Panel Action
Use a panel action to open a slide-over or modal instead of navigating:Without Button
When you don’t want to show an action button:No reviews yetReviews will appear here once customers start leaving feedback on their purchases.
Custom Slot Content
The default slot is used for the illustration on the left side:Usage in Livewire Components
Empty states are typically rendered conditionally when a collection is empty:Blade Component Source
The Empty State component is located atpackages/admin/resources/views/components/empty-state.blade.php: