Move block of orders in Account Dashboard

Stefan Bogdanescu
Founder & Senior Architect · 26 September 2026

Moving My Orders List in Your Account Dashboard

As a Laravel developer, I often receive queries from clients wanting to rearrange elements on their account dashboards. In your case, you want to move the “My orders” list to a different location while keeping everything else intact.

The key lies in understanding how Laravel’s blade templating system works with blocks and sections. In your current layout, block block-dashboard-orders defines a section where the order list is rendered by default.

Step 1: Identify the Block Name

First, let’s clarify the block name involved here. The code you provided:

<x-block block="block-dashboard-orders" />

indicates that the block-dashboard-orders block is being included in your layout file (probably layouts/app.blade.php).

Step 2: Understand Laravel Layout Blocks

In Laravel, blocks allow you to define reusable sections of HTML that can be injected into multiple layouts. When you define a block in one blade template like so:

@block('block-name')
    <!-- Content for the block -->
@endblock

you’re essentially creating a placeholder that can be filled with content from another page.

Step 3: Rearrange Blocks

To move your order list, you need to create a new block and assign it to a different section of your layout. Let’s say you want to move the orders list below the “My account” section.

In your layouts/app.blade.php file:

  1. Locate the existing block-dashboard-orders definition.
  2. Create a new block, say @block('block-moved-orders').
  3. Move all the content from block-dashboard-orders to this new block:
@block('block-dashboard-orders')
    <!-- The order list content -->
@endblock

<!-- Other content -->

<x-block block="block-moved-orders" />
  1. Now, you need to render the “moved” orders in your dashboard view. In pages/dashboard.blade.php:

    • Remove any existing @section('dashboard.orders') definitions.
    • Instead, use a new section for the moved content:
@extends('layouts.app')

@section('content')
    <!-- Other sections -->

    <x-block block="block-moved-orders" />
@endsection

Step 4: Update the Route

If your dashboard route is pointing to pages/dashboard.blade.php, you don’t need to update it. The new structure will be recognized automatically.

Conclusion

Moving a section in Laravel involves understanding and manipulating blocks within your layout files. By creating a new block and reassigning its content, you can easily rearrange elements on your account dashboard without breaking existing functionality.

Remember to always keep your layouts clean and organized for better maintainability. If the order list grows complex or needs additional processing, consider moving it to its own view or component.

For more in-depth guidance on Laravel layout blocks and components, I recommend checking out our comprehensive guide at LaravelCompany. It provides a step-by-step walkthrough of advanced layout techniques.

Our network