To filter out the archived series from the "Recently Updated" heading, you can modify the query to exclude the archived series. Assuming you have a column named "archived" in your series table, you can add a condition to exclude the archived series in the query.
Here's an example of how you can modify the query using Laravel's Eloquent ORM:
$recentlyUpdatedSeries = Series::where('archived', false)
->orderBy('updated_at', 'desc')
->take(10)
->get();
In this example, we're using the where method to add a condition to exclude the archived series. The orderBy method is used to order the series by the updated_at column in descending order. The take method limits the number of results to 10. Finally, the get method retrieves the series.
Make sure to replace Series with the actual model class name for your series table.
By adding this condition to the query, the archived series will be excluded from the "Recently Updated" heading.