Update tag partial-view to use custom color
MODIFY
app/Http/Controllers/DashboardController.php
app/Http/Controllers/DashboardController.php
@@ -25,6 +25,7 @@ class DashboardController extends Controller {
$mostExpensiveTags = DB::select('
SELECT
tags.name AS name,
+ tags.color AS color,
SUM(spendings.amount) AS amount
FROM
tags

MODIFY
resources/views/dashboard.blade.php
resources/views/dashboard.blade.php
<div class="box__section box__section--header">Most Expensive {{ __('models.tags') }}</div>
@foreach ($mostExpensiveTags as $index => $tag)
<div class="box__section row row--seperate">
- <div class="row__column row__column--middle color-dark">{{ $tag->name }}</div>
+ <div class="row__column row__column--middle color-dark">
+ @include('partials.tag', ['payload' => $tag])
+ </div>
<div class="row__column row__column--middle">
<progress max="{{ $totalSpent }}" value="{{ $tag->amount }}"></progress>
</div>

MODIFY
resources/views/partials/tag.blade.php
resources/views/partials/tag.blade.php
-<span style="border-radius: 5px; background: #DEEAFE; color: #618DD7; padding: 5px 10px; font-size: 14px; font-weight: 600;"><i class="fas fa-tag fa-xs"></i> {{ $payload->name }}</span>
+<span style="border-radius: 5px; background: #{{ $payload->color }}; color: #FFF; padding: 5px 10px; font-size: 14px; font-weight: 600;"><i class="fas fa-tag fa-xs"></i> {{ $payload->name }}</span>

Update tag partial-view to use custom color