# Slots

# What are the available account area slots?

### Navbar

- `navbar.info`

### Addresses

- `addresses.address.card.footer`

### Orders

- `orders.order.card.dispatched`
- `orders.order.card.not-dispatched`
- `order.header.buttons`
- `orders.order.card.header`
- `orders.order.card.footer`

### Subscriptions

- `subscriptions.subscription.card.header`
- `subscriptions.subscription.card.footer`

# How do I inject into account area slots?

Account Area Slots allow you to add content within existing account area pages. The examples below show how to inject a view into the orders page.

For a simple use case, simply provide a view:

```php
\Aero\AccountArea\AccountAreaSlot::inject('order.header.buttons', 'acme::button');
```

For more advanced use cases, instead of passing a view directly, you can provide a callback function:

```php
\Aero\AccountArea\AccountAreaSlot::inject('order.header.buttons', function ($data) {
    // add custom variables to the $data array

    return view('acme::button', $data);
});
```

<p class="callout info">These injections should typically sit inside the `boot` method of a Service Provider</p>