<style>

    @foreach($units as $unit)
    .{{$unit->slug  }}{
        background: {{$unit->color}};
        color:#fff;

        display: inline-block;
        padding: 5px 9px;
        border-radius: 3px;
        font-size: 12px;
    }

    @endforeach
</style>